Solve a Hidato puzzle/Extended Tcl solution: Difference between revisions

m
Better description
(How to solve even the difficult cases)
 
m (Better description)
 
Line 1:
This version handles even tricky cases where there are many possible pathschoices atof theeach startpath but only one leads to a solution (as in <tt>awkwardcase</tt> below). The core of this is the <code>ForkSolve</code> method, which clones the current object and speculatively searches forward from there. <small>(Note, you need a very recent build of Tcl 8.6 to make this work, as it depends on a feature change from 2012-03-27.)</small>
{{works with|Tcl|8.6}}
<lang tcl>package require Tcl 8.6
Anonymous user