def test_create_end_state_not_end(self): """ Purpose: Test creating a penguin end state where it is not in an end state Signature: Void -> Void """ with self.assertRaises(ValueError): FishGameStateFactory.create_end_game_state( CreateStateTest.test_board, [(PlayerColor.RED, CreateStateTest.test_board_valid_col1, 0), (PlayerColor.BROWN, CreateStateTest.test_board_valid_col2, 0) ])
def test_create_end_state_end(self): """ Purpose: Test creating a penguin end state Signature: Void -> Void """ small_board = FishBoardModel.create_with_same_fish_amount(4, 2, 3) game_state = FishGameStateFactory.create_end_game_state( small_board, [(PlayerColor.RED, CreateStateTest.test_board_valid_col1, 0), (PlayerColor.BROWN, CreateStateTest.test_board_valid_col2, 5)]) self.assertEqual(GamePhase.END_GAME, game_state.get_game_phase())