Created
December 7, 2010 20:41
-
-
Save dwt/732374 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def each_fortune_value(initial_fortune, minimum_bet, maximum_bet) | |
table = PerfectEuropeanRouletteTable.new RouletteCroupier.new, minimum_bet, maximum_bet | |
player = MartingalPlayer.new initial_fortune, table | |
yield player.fortune | |
while not player.bankrupt? | |
player.place_jetons :black | |
table.croupier.no_more_bets | |
yield player.fortune | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment