Okay, the code got a bit messy as I pushed this thing into finally 
surrendering to my stubborn determination.

Please see what you think of the latest Acey Ducey à la TiddlyWiki 
<https://tiddlywiki-programming.neocities.org/CJ_TiddlyWikiProgramming.html#Acey%20Ducey>
 
incarnation.

The random number generator is tricky.  When trying to store something 
derived from a generated random number, it seems like there needs to be a 
little time between the generation of the random number (which gets stored 
in a tiddler) and using that stored random number to generate something 
else that needs to be stored in a tiddler.  (Ugh, I worded all of that 
awkwardly.)

The new version seems to work well.  I'll be testing for a day or more 
before I start refactoring the code, and adding some comments here and 
there.

That was some aged brain workout...

On Friday, February 12, 2021 at 10:27:48 AM UTC-4 clutterstack wrote:

> Haha, cute! I guess you already said you had fine-tuning to do. I noticed 
> that the first round always seems to be the same, and also that if I bet 
> all $100 in the first round (and lose it), the bet slider goes to zero by 
> itself, but the bet value stays at $100.
>
> Still already a nice demonstration.
>
> On Friday, February 12, 2021 at 6:13:42 AM UTC-5 Ste wrote:
>
>> Very cool! 
>>
>>
>> On Thursday, 11 February 2021 at 21:32:21 UTC [email protected] wrote:
>>
>>> I still have some fine-tuning to do, and might do some refactoring to 
>>> improve the code.
>>>
>>> Good enough, though, for playing with:  
>>>
>>> The Acey Ducey Card Game à la TiddlyWiki 
>>> <https://intertwingularityslicendice.neocities.org/CJ_TiddlyWikiProgramming.html#Acey%20Ducey>
>>>
>>> Cheers !
>>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/a2b514ff-6a69-405c-a364-8752f7c8d73bn%40googlegroups.com.

Reply via email to