Solve a Hidato puzzle: Difference between revisions

m
→‎{{header|Tailspin}}: use new integer division operator
(add Tailspin solution)
m (→‎{{header|Tailspin}}: use new integer division operator)
Line 4,069:
def next: $ -> (<{n: <$back>}> $.next + 1! <> $.next!);
@hidato.board($.row; $.col): $.n;
0..8 -> { next: $next, n: $guess.n + 1, row: $guess.row + $ ~/ 3 - 1, col: $guess.col + $ mod 3 - 1 } -> #
@hidato.board($.row; $.col): $back;
end solve
Anonymous user