Esempio n. 1
0
 def test_get_player_id(self):
     game = Game()
     _, player_id = game.init_game()
     current = game.get_player_id()
     self.assertEqual(player_id, current)
Esempio n. 2
0
 def test_get_legal_actions(self):
     game = Game()
     state, _ = game.init_game()
     actions = game.get_legal_actions(state)
     for action in actions:
         self.assertIn(action, state['current_hand'])
Esempio n. 3
0
 def test_init_game(self):
     game = Game()
     state, _ = game.init_game()
     total_cards = list(state['current_hand'])
     self.assertGreaterEqual(len(total_cards), 14)