示例#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));
 }
示例#2
0
 @Test
 public void testFullForNonFullBoard() {
   assertFalse(GameState.full(board));
 }