Here is a simulation of repeated games over the long run.
(Updated: see the new scalable version.)
This applet simulates repeated game-playing, until one side or the other
is ahead by a sufficient number.
The applet accepts the following keyboard inputs. (You may need to
"click" on the applet first.)
-
Use the numbers '0' through '9' to set the animation speed level higher
or lower.
-
Use 'r' to restart the simulation, or 'z' to zero the Record.
-
Use '>' and '<' to increase/decrease the win probability of each bet.
(Possible values include 0.492929 [the probability of winning at craps]
and 0.473684 [the probability of winning at roulette] plus various other
values like 0.333333, 0.4, 0.45, 0.49, 0.495, 0.499, 0.4999, 0.5, 0.6, etc.)
-
Use '+' and '-' to increase/decrease the number of games needed by each
side to win (and restart).
Or, use 'T' or 'H' or 'G' or 'F' to set the number of games needed to
win to be 1 or 10 or 100 or 500, respectively.
- Use 'A' to jump to one game shy of losing,
or 'B' to jump to one game shy of winning, or
'j' or 'k' to increase/decrease the number needed to win.
Applet by Jeffrey S. Rosenthal
(contact me).
See also my similar gambler's ruin applet.
[Return to my Applets Page / Home Page]