15 puzzle solver: Difference between revisions
m
Fixed spelling error, bumped tested version.
Thundergnat (talk | contribs) m (Automated syntax highlighting fixup (second round - minor fixes)) |
Hendursaga (talk | contribs) m (Fixed spelling error, bumped tested version.) |
||
Line 3,127:
The idea is taken from C++ or F# version above.
The code was tested with gforth 0.7.
<syntaxhighlight lang="forth">
#! /usr/bin/gforth
Line 3,187:
4 0 do dup i valid? if i step u-turn <> if i advance recurse rollback then then loop ;
\ Iterative-
: solve 1 limit ! begin search deeper again ;
|