MCPcopy
hub / github.com/TheAlgorithms/JavaScript / printBoard

Method printBoard

Backtracking/KnightTour.js:60–69  ·  view source on GitHub ↗
(output = (value) => console.log(value))

Source from the content-addressed store, hash-verified

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
72export { OpenKnightTour }

Callers

nothing calls this directly

Calls 2

outputFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected