Skip to content

Instantly share code, notes, and snippets.

@dwt
Created December 7, 2010 20:41
Show Gist options
  • Save dwt/732374 to your computer and use it in GitHub Desktop.
Save dwt/732374 to your computer and use it in GitHub Desktop.
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