Monday, November 29, 2010
Statistics are hard to program!
This was done on a whim, and I don't freakin trust it!
While playing the classic "Clock Game" (cause I don't know what else to call it), I wondered what the odds of winning were. Famously, this game is only won a couple of times in a person's life, so the odds must be very much against the player, right?
Apparently not. I programmed this to simulate the playing of this game as many times as you care to wait for, record the wins and losses, and calculate the odds. Apparently, if you randomize the deck like a computer does, you'll win quite often.
Check it out, and be kind :D. Don't go hog-wild on the number of games, it'll take a while. I should really add a kill button. *shrug* eh.
Subscribe to:
Post Comments (Atom)
2 comments:
No workie!
Did you enter in a number before hitting start? >>
Sorry, didn't mention you had to tell it how many games to play :D
Post a Comment