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()
def test_get_action_num(self): game = BidGame(players, num_players, starting_player, num_cards_per_player, num_cards_dog, dog) action_num = game.get_action_num() self.assertEqual(action_num, 6)