I recently watched the Gambler with Marky Mark and it got me thinking
about Roulette. Is it possible to win? What are my odds if I decide
to play Roulette?
The game of Roulette (at least the ones you will find in American Casinos)
have 38 potential values. Of those 38 values, 18 are red and 18 are black.
The remaining 2, 0 and 00, are colored green. There are several bets, each
with different payouts. For the sake of brevity, I am only going to focus
on red or black bets. Betting on red or black is a 2x payout if correct. The
odds of red or black is 18:38, which is 47.3%.
I wanted to test the most logical (but actually illogical) way to win, at
least to me. This would be, if the table has had 3 reds in a row I am going
to bet on black, and vice versa. Then for bonus I wanted to do a double down
strategy if an incorrect bet was made.
The code keeps playing until one of two conditions are met, I am out
of money, or I have exceeded my max (walkaway). When running the different
tests it should be noted that I did actually get to my max a few times on
the double down sequence betting. The rest I always ended at 0. The only
thing that changed were how many games had to be played to acheive my defeat.
Lets define some simple helper variables. First REDS and BLACKS are defined
A couple of helper functions are needed. Spinning the wheel, spin, and
the tracker that will track the current sequence of colors
finally its time for the actual betting! This will play until you have no
cash or you cash exceeds the max passed in.
Lets try some betting! Here are the three bets I defined above.
First, the simple bet of 50 at a time. Upon every lose restart
the sequence tracker.
Second, lets bet on a sequence, and if we miss our first bet, keep
betting until we win or green.
Third, same as above, expect lets go exponential on each bet.
After running these different betting schemes it became clear. You
always lose at roulette, no matter how clever you are.