()
| 5 | } |
| 6 | |
| 7 | findEmptyCell() { |
| 8 | // Find a empty cell in the board (returns [-1, -1] if all cells are filled) |
| 9 | for (let i = 0; i < 9; i++) { |
| 10 | for (let j = 0; j < 9; j++) { |
| 11 | if (this.board[i][j] === 0) return [i, j] |
| 12 | } |
| 13 | } |
| 14 | return [-1, -1] |
| 15 | } |
| 16 | |
| 17 | check([y, x], value) { |
| 18 | // checks if the value to be added in the board is an acceptable value for the cell |
no outgoing calls
no test coverage detected