public void testThatItTakesFiveForTheHumanPlayerToWin() { fakeStrategy.playerSeriesSizes.put(Board.HUMAN_PLAYER_MARK, SERIES_SIZE_OF_FIVE); game.updateGameState(); assertFalse(game.noWinnerYet()); assertTrue(game.humanPlayerWon()); }
// TODO: Declan 17-May-2009 - Updated to test for 6 row in a row rather than 5 public void testThatItTakesSixForTheComputerToWin() { fakeStrategy.playerSeriesSizes.put(Board.COMPUTER_PLAYER_MARK, SERIES_SIZE_OF_SIX); game.updateGameState(); assertFalse(game.noWinnerYet()); assertTrue(game.computerWon()); }
public void testThatHumanDoesNotWinWithFourInARow() { fakeStrategy.playerSeriesSizes.put(Board.HUMAN_PLAYER_MARK, SERIES_SIZE_OF_FOUR); assertTrue("there was a winner when there shouldn't be", game.noWinnerYet()); }
// TODO: Declan 17-May-2009 - Updated to test for 5 row in a row rather than 4 public void testThatComputerDoesNotWinWithFiveInARow() throws Exception { fakeStrategy.playerSeriesSizes.put(Board.COMPUTER_PLAYER_MARK, SERIES_SIZE_OF_FIVE); assertTrue("there was a winner when there shouldn't be", game.noWinnerYet()); }