예제 #1
0
 def test_board_grid_update_move_match_expected(self,size,move,expected_grid):
     board1 = Board(size);
     board1.update_move(move,"X")
     self.assertEqual(board1.grid,expected_grid)
예제 #2
0
 def test_board_grid_update_move_not_allowed(self,size,initial_grid, move):
     board1 = Board(size);
     board1.grid = initial_grid
     self.assertFalse(board1.update_move(move,"X"))