@Test public void testFinishedOnGameWithWinner() { for (int i = 0; i < board.dimension; i++) { int[] cell = {i, 0}; board.setCellValue(cell, 1); } assertTrue(GameState.finished(board)); }
@Test public void testFinishedOnFullBoard() { for (int i = 0; i < board.dimension; i++) { for (int j = 0; j < board.dimension; j++) { int[] cell = {i, j}; board.setCellValue(cell, 1); } } assertTrue(GameState.finished(board)); }
@Test public void testFinished() { assertFalse(GameState.finished(board)); }