def setUp(self): table = Table(100) rng_wheel = NonRandom() wheel = Wheel(rng_wheel) rng_player = NonRandom() self.initial_player_stake = 1000 self.table = table self.game = Game(wheel, table) self.player = RandomPlayer(table, rng_player) self.player.stake = self.initial_player_stake self.player.rounds_to_go = 10 possible_outcomes = [] for bin in wheel.bin_iterator(): for outcome in bin: possible_outcomes.append(outcome) self.player.set_possible_outcomes(possible_outcomes)
def setUp(self): table = Table(200) self.player = MartingalePlayer(table) self.player.stake = 100 wheel = Wheel(NonRandom()) # bin_builder = BinBuilder() # bin_builder.build_bins(wheel) self.game = Game(wheel, table)
def setUp(self): table = Table(100) rng = NonRandom() wheel = Wheel(rng) self.game = Game(wheel, table) self.player = MartingalePlayer(table) self.player.stake = 1000 self.player.rounds_to_go = 10 self.outcomes = [Outcome("Black", 1), Outcome("Red", 1)]
def setUp(self): table = Table(100) rng = NonRandom() wheel = Wheel(rng) self.inital_player_stake = 1000 self.table = table self.game = Game(wheel, table) self.player = SevenRedsPlayer(table) self.player.stake = self.inital_player_stake self.player.rounds_to_go = 10 self.outcomes = Outcome("Black", 1)
def setUp(self): table = Table(100) rng_wheel = NonRandom() wheel = Wheel(rng_wheel) self.initial_player_stake = 1000 self.table = table self.game = Game(wheel, table) self.player = PlayerFibonacci(table) self.player.stake = self.initial_player_stake self.player.rounds_to_go = 1 self.outcomes = [Outcome("Black", 1), Outcome("Red", 1)]
def setUp(self): self.outcome1 = Outcome("abc", 2) self.outcome2 = Outcome("def", 3) self.outcome3 = Outcome("ghi", 4) self.outcome4 = Outcome("jkl", 5) self.bin1 = Bin(self.outcome1, self.outcome2, self.outcome3) self.bin2 = Bin(self.outcome2, self.outcome3, self.outcome4) self.wheel = Wheel(NonRandom()) self.wheel.set_bin(0, self.bin1) self.wheel.set_bin(1, self.bin2)