예제 #1
0
 def get_action_num(self) -> int:
     """
     Return the number of applicable actions
     :return: (int): The number of actions. There are 6 or 78 actions
     """
     if self.current_game_part == 'BID':
         return BidGame.get_action_num()
     elif self.current_game_part == 'DOG':
         return DogGame.get_action_num()
     else:
         return MainGame.get_action_num()
예제 #2
0
 def test_get_action_num(self):
     game = MainGame(num_players, num_cards_per_player, starting_player,
                     players, taking_player_id, new_dog)
     action_num = game.get_action_num()
     self.assertEqual(action_num, 78)