Return to site

Simple roulette python

broken image
broken image

Once this basic strategy has played out, it then randomises the strategy and plays roulette with the new strategy it invents. It then has a target to try to reach each 'day' - not sure what to call the 'days', perhaps a set/iteration? It also has a cut off point after which it won't continue to bet. If you lose, you double your stake, if you win, you reset your stake.

broken image
broken image

If the number is even, you win, if the number is odd, you lose. I coded a very simple roulette game - for the moment it just produces a random number between 0 and 36 (up to and including?). First post on /r/LearnPython - but here's the code:

broken image