Solve a Hopido puzzle: Difference between revisions
Content added Content deleted
Line 845: | Line 845: | ||
const hopidomoves = [[-3, 0], [0, -3], [-2, -2], [-2, 2], [2, -2], [0, 3], [3, 0], [2, 2]] |
const hopidomoves = [[-3, 0], [0, -3], [-2, -2], [-2, 2], [2, -2], [0, 3], [3, 0], [2, 2]] |
||
board, |
board, maxmoves, fixed, starts = hidatoconfigure(hopid) |
||
printboard(board, " 0", " ") |
printboard(board, " 0", " ") |
||
hidatosolve(board, hopidomoves, fixed, starts[1][1], starts[1][2], 1, 1 |
hidatosolve(board, maxmoves, hopidomoves, fixed, starts[1][1], starts[1][2], 1, 1) |
||
printboard(board) |
printboard(board) |
||
</lang>{{output}}<pre> |
</lang>{{output}}<pre> |