def setUp(self): self.table = table.Table(minimum=1, maximum=450) self.dice = dice.Dice() self.game = craps_game.CrapsGame(self.dice,self.table) self.bets = [ bet.Bet(5, outcome.Outcome("Pass Line", 1)), bet.Bet(10, outcome.Outcome("Any Craps", 31)), bet.Bet(50, outcome.Outcome("Odds on Come", 16)), bet.Bet(490, outcome.Outcome("Dont Pass Line", 2)) ]
def setUp(self): self.line_outcome = outcome.Outcome('Pass Line', 1) self.odds_outcome = outcome.Outcome('Pass Line Odds', 1) self.strategy_nochange = nochange_betting.NoChangeBetting( self.line_outcome) self.strategy_martingale = martingale_betting.MartingaleBetting( self.odds_outcome) self.table = table.Table(5, 1000) self.game = craps_game.CrapsGame(table=self.table, dice=dice.Dice()) self.player = craps_twobetplayer.CrapsTwoBetPlayer( self.table, dice.Dice()) self.player.line_strategy = self.strategy_nochange self.player.odds_strategy = self.strategy_martingale
def setUp(self): self.outcome = outcome.Outcome('Pass Line', 1) self.strategy_nochange = nochange_betting.NoChangeBetting(self.outcome) self.strategy_martingale = martingale_betting.MartingaleBetting( self.outcome) self.table = table.Table(5, 1000) self.game = craps_game.CrapsGame(table=self.table, dice=dice.Dice()) # self.player = craps_onebetplayer.OneBetPlayer( # table = self.table, # strategy = self.strategy_nochange # ) self.player = craps_onebetplayer.OneBetPlayer(table=self.table, dice=dice.Dice()) self.player.line_strategy = self.strategy_martingale
def setUp(self): self.line_outcome = outcome.Outcome('Pass Line', 1) self.odds_outcome = outcome.Outcome('Pass Line Odds', 1) self.seven_outcome = outcome.Outcome('Number 7', 4) self.strategy_nochange = nochange_betting.NoChangeBetting( self.line_outcome) self.strategy_bet1326 = bet1326_betting.Craps1326Betting( self.odds_outcome) self.strategy_martingale = martingale_betting.MartingaleBetting( self.seven_outcome) self.table = table.Table(5, 1000) self.game = craps_game.CrapsGame(table=self.table, dice=dice.Dice()) self.player = craps_sevencountplayer.CrapsSevenCountPlayer( self.table, dice=dice.Dice()) self.player.line_strategy = self.strategy_nochange self.player.odds_strategy = self.strategy_bet1326 self.player.seven_strategy = self.strategy_martingale
def setUp(self): self.throw = throw.ElevenThrow(6, 5) self.dice = dice.Dice() self.table = table.Table(minimum=1, maximum=1000) self.game = craps_game.CrapsGame(self.dice, self.table)
def setUp(self): self.throw_hard = throw.CrapsThrow(1, 1) self.throw_easy = throw.CrapsThrow(2, 1) self.dice = dice.Dice() self.table = table.Table(minimum=1, maximum=1000) self.game = craps_game.CrapsGame(self.dice, self.table)
def setUp(self): self.throw = throw.NaturalThrow(3, 4) self.dice = dice.Dice() self.table = table.Table(minimum=1, maximum=1000) self.game = craps_game.CrapsGame(self.dice, self.table)