Jump to content

Solve a Holy Knight's tour: Difference between revisions

Line 2,470:
const knightmoves = [[-2, -1], [-2, 1], [-1, -2], [-1, 2], [1, -2], [1, 2], [2, -1], [2, 1]]
 
board, emptiesmaxmoves, fixed, starts = hidatoconfigure(holyknight)
printboard(board, " 0", " ")
hidatosolve(board, maxmoves, knightmoves, fixed, starts[1][1], starts[1][2], 1, 1, empties + length(fixed))
printboard(board)
</lang>{{output}}<pre>
4,108

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.