Пример #1
0
 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
Пример #2
0
 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()
Пример #3
0
 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()
Пример #4
0
 def setUp(self):
     self.game = gambit.new_tree()
     self.extensive_game = gambit.read_game("test_games/basic_extensive_game.efg")
Пример #5
0
 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
Пример #6
0
	def setUp(self):
		self.game = gambit.new_tree()
Пример #7
0
 def setUp(self):
     self.game = gambit.new_tree()
Пример #8
0
 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
Пример #9
0
 def setUp(self):
     self.game = gambit.new_tree()
     self.extensive_game = gambit.read_game(
         "test_games/basic_extensive_game.efg")