def test_game_dereference_invalid(self): "Test referencing an invalid game member object" g = gambit.new_tree() g.players.add("One") s = g.players[0].strategies[0] g.root.append_move(g.players[0], 2) s.number
def setUp(self): self.strategic_game = gambit.new_table([2, 2]) self.strategic_game.players[0].label = "Alphonse" self.strategic_game.players[1].label = "Gaston" self.extensive_game = gambit.new_tree()
def setUp(self): self.strategic_game = gambit.new_table([2,2]) self.strategic_game.players[0].label = "Alphonse" self.strategic_game.players[1].label = "Gaston" self.extensive_game = gambit.new_tree()
def setUp(self): self.game = gambit.new_tree() self.extensive_game = gambit.read_game("test_games/basic_extensive_game.efg")
def test_infoset_player_mismatch(self): "Test to ensure exception raised on setting player from different game." g2 = gambit.new_tree() p = g2.players.add() self.extensive_game.root.infoset.player = p
def setUp(self): self.game = gambit.new_tree()
def setUp(self): self.game = gambit.new_tree() self.extensive_game = gambit.read_game( "test_games/basic_extensive_game.efg")