Games of Chance Money Fluctuation

Hey guys,

Firstly I would like to say how appreciative I am for all of you in the group. I wouldn’t know where to begin without the assistance you all have given me.

I have another question if you could take the minute to point me in the right direction. I am playing around with the “Games of Chance” freeflow lesson and would like to make it an actual game. I have only been able to place a bet and have that bet either added or subtracted from the beginning total. How do I make the beginning total fluctuate with the either added winnings or subtracted losses?

All of the game modules return either a positive value, zero, or a negative value. In other words, all the returns are signed. Upon return we only need to add the value to our money.

money += coin_flip(10)

So, where would I add this line?

The programs are written in the body of the script. Our runtime program would be at the bottom.

run time statements

Thank you, mtf! I’ll try and figure it out.