Ejemplo n.º 1
0
 @Test
 public void testFullForFullBoard() {
   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.full(board));
 }
Ejemplo n.º 2
0
 @Test
 public void testFullForNonFullBoard() {
   assertFalse(GameState.full(board));
 }