15 puzzle solver: Difference between revisions

m
Fixed spelling error, bumped tested version.
m (Automated syntax highlighting fixup (second round - minor fixes))
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.23. It required a 64-bit system.
<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-deepningdeepening search:
: solve 1 limit ! begin search deeper again ;
 
14

edits