(output = (...v) => console.log(...v))
| 61 | } |
| 62 | |
| 63 | printBoard(output = (...v) => console.log(...v)) { |
| 64 | // helper function to display board |
| 65 | for (let i = 0; i < 9; i++) { |
| 66 | if (i % 3 === 0 && i !== 0) { |
| 67 | output('- - - - - - - - - - - -') |
| 68 | } |
| 69 | output( |
| 70 | ...this.getSection(i, [0, 3]), |
| 71 | ' | ', |
| 72 | ...this.getSection(i, [3, 6]), |
| 73 | ' | ', |
| 74 | ...this.getSection(i, [6, 9]) |
| 75 | ) |
| 76 | } |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | export { Sudoku } |
nothing calls this directly
no test coverage detected