topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday December 3, 2025, 6:34 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 1514next
326
Hi ThR1LL.

This is by design so that games are predictable between users.

You can use the --seedstart option to pass in a different seed number which will generate different random values; every time you use a different seed number you will get different games.

It may seem confusing but the idea was that YOUR games #1-10 would be the same as MY games #1-10, for easy comparison and playing together.

So the way I do it is I don't change the see, but I just make a pdf with like 500 games, and then just print a few of those at a time.  I thought I had an option where you could tell the program what game # to start printing at, but it seems I was wrong; I should probably add that feature.



You'll find commandline options in the readme.txt in the documentation folder:

//---------------------------------------------------------------------------
usage: cnduet.py [-h] [--language OPTION_LANGUAGE]
                 [--wordfile OPTION_WORDFILE]
                 [--patternfile OPTION_PATTERNFILE] [--outpath OPTION_OUTPATH]
                 [--turncount OPTION_TURNCOUNT]
                 [--mistakecount OPTION_MISTAKECOUNT]
                 [--goalcount OPTION_GOALCOUNT] [--seedstart OPTION_SEEDSTART]
                 [--gamecount OPTION_GAMECOUNT] [--bookname OPTION_BOOKNAME]
                 [--format {html,pdf}]

optional arguments:
  -h, --help            show this help message and exit
  --language OPTION_LANGUAGE
                        language name (specifies a subdirectory of the data
                        directory where wordfile and templates will be looked
                        for)
  --wordfile OPTION_WORDFILE
                        filename (word list text file to user; should not
                        include subdirectory; will be looked for in
                        data/language and then data/ directories) (each word
                        should be on its own line)
  --patternfile OPTION_PATTERNFILE
                        filename (optionally with path) of card coloring
                        pattern data (each line is a triple specifying
                        cardcount, player1color, player2color); just base name
                        no subdir
  --outpath OPTION_OUTPATH
                        path to save output files
  --turncount OPTION_TURNCOUNT
                        number of turns per game
  --mistakecount OPTION_MISTAKECOUNT
                        number of mistakes allowed per game
  --goalcount OPTION_GOALCOUNT
                        number of goals needed to win game)
  --seedstart OPTION_SEEDSTART
                        starting seed number to use
  --gamecount OPTION_GAMECOUNT
                        number of games to generate
  --bookname OPTION_BOOKNAME
                        base name of book output files
  --format {html,pdf}   final output format (should be html or pdf)

E:\MyDocs\Programming\Python\cnpaperplay\source>

//---------------------------------------------------------------------------

327
Nice long essay on ArsTechnica
Google Talk, Google's first-ever instant messaging platform, launched on August 24, 2005. This company has been in the messaging business for 16 years, meaning Google has been making messaging clients for longer than some of its rivals have existed. But thanks to a decade and a half of nearly constant strategy changes, competing product launches, and internal sabotage, you can't say Google has a dominant or even stable instant messaging platform today.

328
JGPaiva's GridMove and Ahk Tools / Re: GridMove: Grids Here
« Last post by mouser on August 26, 2021, 08:21 PM »
Thanks for sharing, Mecha!
329
DC Website Help and Extras / Re: Server being updated today 8/24/21
« Last post by mouser on August 25, 2021, 04:20 AM »
Yep, ok its s confirmed smf bug.
I've applied an unofficial patch, hopefully that will fix it.

Thanks, Shades!
330
DC Website Help and Extras / Re: Server being updated today 8/24/21
« Last post by mouser on August 24, 2021, 09:38 PM »
How confident are you that that's a new bug?
331
DC Website Help and Extras / Re: Server being updated today 8/24/21
« Last post by mouser on August 24, 2021, 09:14 PM »
Thank you, will fix.
333
Living Room / Re: Programming/Coder humor
« Last post by mouser on August 24, 2021, 05:37 PM »
ha  :P
334
DC Website Help and Extras / Re: Server being updated today 8/24/21
« Last post by mouser on August 24, 2021, 04:58 AM »
Maintenance is finished -- please let me know if you spot anything on the forum misbehaving!
335
DC Website Help and Extras / Server being updated today 8/24/21
« Last post by mouser on August 24, 2021, 02:11 AM »
Just a note that I will be doing some server software updates tonight; you might expect some hiccups and downtime.
336
Thanks for sharing this.
This might be a good time to remind folks to consider sending some donationcredits or direct donations to coders on the site whose work you want to support and encourage.  It can mean a lot to them.   :Thmbsup:
337
Great news  :Thmbsup:
338
General Software Discussion / Re: email sender rewrite proxy
« Last post by mouser on August 17, 2021, 03:13 PM »
Interesting.
Does it have to be a full blown smtp proxy server, or can you configure the email sender to use a commandline mail sending tool as its delivery method?
339
Living Room / Re: Hidden Netflix Marathon Gems to Watch Online
« Last post by mouser on August 16, 2021, 11:25 AM »
Not on Netflix, but on Hulu and the FX Network:

Dave - https://www.fxnetworks.com/shows/dave
https://en.wikipedia...wiki/Dave_(TV_series)
Screenshot - 8_16_2021 , 11_25_27 AM.png

A surprising, unique, emotionally deep, and very funny show, IF it resonates with you (which it might not!).  I find it very special.
340
TERRIBLE idea.
341
Living Room / Re: Is anyone else's cat afraid of circles on the television?
« Last post by mouser on August 12, 2021, 10:57 AM »
 ;D ;D ;D
342
Living Room / Is anyone else's cat afraid of circles on the television?
« Last post by mouser on August 11, 2021, 01:30 PM »
Try showing this to your cat:


My cat doesn't care what's on tv/monitor EXCEPT if there is some big circle comes on the screen, then she panics like it is a horrible monster?

The video above is just an example of one that scares her -- but it doesn't have to be a moving animation -- any giant circle will do.

What's up with that?
343
Living Room / Re: Who here makes ice cream?
« Last post by mouser on August 05, 2021, 11:33 AM »
Here's the kind of machine you can use to make ice cream these days:
https://www.amazon.c...rt-Ice/dp/B003KYSLMW

You freeze the bowl overnight first.

$70 new, you could probably find them for $30 on craigslist.  They make excellent ice cream.

344
Living Room / Who here makes ice cream?
« Last post by mouser on August 04, 2021, 04:09 PM »
I've been on an ice cream making kick lately.  Anyone else enjoy making it?

Favorite flavors: Coffee, Mint, Strawberry.

I started with the "Perfect Scoop" book: https://www.amazon.c...ments/dp/039958031X/
But it's a little too custardy (egg yolk) heavy for me; I prefer my ice cream a little more airy.
Ben and Jerry's older book has a recipe that uses 2 whole eggs, whipped (not cooked), that I have really been enjoying: https://www.amazon.c...-Book/dp/0894803123/
345
N.A.N.Y. 2022 / NANY 2022 Pledge - Oculus Quest VR Game - Withdrawn
« Last post by mouser on August 03, 2021, 02:24 PM »
I posted here my experience buying an Oculus Quest 2 recently: https://www.donation...ic=51544.0;topicseen

I'm working on a game for it, which will be a NANY 2022 release!
346
That's
Mouser, will your game work on the Q1 or only the new one? I'm guessing they're similar just maybe improved resolution?

That's a very good question!
I'll send you a link to the APK you can install it via sidequest and let me know if it works :)


347
Living Room / Trying to remember an old flash game?
« Last post by mouser on August 02, 2021, 01:07 AM »
Does anyone remember a game we discussed on this forum MANY years ago.. I think it was Flash-based, set in a train, very atmospheric and mysterious.. i think as a player you were supposed to be dead, traveling to the afterlife or something..  I think it was kind of like an adventure game.. or maybe it was just a mini flash animated movie?
348
I've been having a blast coding with Unity/C# for the device over the past couple of weeks.  Hopefully will have a playable game eventually.
349
Developer's Corner / Re: Constructing a minimal Sudoku puzzle
« Last post by mouser on July 28, 2021, 05:31 PM »
I should clarify my use of the term "code duplication".

Don't Repeat Yourself (DRY) is what I believe is the most important principle in coding.

I'm not arguing against one person recreating the code someone else has made.  That's fine, that's programming.

What's evil is when you have two places in your code where you are essentially repeating yourself, such that if you wanted to improve one version you'd have to remember to also always reproduce your changes in the other branch..
350
Developer's Corner / Re: Constructing a minimal Sudoku puzzle
« Last post by mouser on July 28, 2021, 01:53 PM »
I know I just said to avoid premature optimization, but in terms of speed, I think your original code with ONE grid passed by reference and resetting values that don't lead to success actually seems like it would be a lot faster and memory friendly than the alternative...  Because you are doing a depth first search it seems like that would work just fine.

Something to consider after you get it all working :)
Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 1514next