(int row, int col)
| 42 | } |
| 43 | |
| 44 | private boolean isInGrid(int row, int col) { |
| 45 | return row >= 1 && row <= gridSize && col >= 1 && col <= gridSize; |
| 46 | } |
| 47 | |
| 48 | // opens the site (row, col) if it is not open already |
| 49 | public void open(int row, int col) { |