(BoggleBoard board, int row, int col)
| 94 | } |
| 95 | |
| 96 | private boolean isValidGrid(BoggleBoard board, int row, int col) { |
| 97 | return col >= 0 && col < board.cols() && row >= 0 && row < board.rows(); |
| 98 | } |
| 99 | |
| 100 | // Returns the score of the given word if it is in the dictionary, zero otherwise. |
| 101 | // (You can assume the word contains only the uppercase letters A through Z.) |