(output = (value) => console.log(value))
| 58 | } |
| 59 | |
| 60 | printBoard(output = (value) => console.log(value)) { |
| 61 | // Utility function to display the board |
| 62 | for (const row of this.board) { |
| 63 | let string = '' |
| 64 | for (const elem of row) { |
| 65 | string += elem + '\t' |
| 66 | } |
| 67 | output(string) |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | export { OpenKnightTour } |