Anonymous user
Solve a Numbrix puzzle: Difference between revisions
{{Out}}
(unneeded variables deleted!) |
({{Out}}) |
||
Line 1:
{{task}}
Numbrix puzzles are similar to [[Solve a Hidato puzzle|Hidato]].
Published puzzles also tend not to have holes in the grid and may not always indicate the end node.
Two examples follow:
;Example 1
Line 53 ⟶ 56:
</pre>
;Task
Write a program to solve puzzles of this ilk,
demonstrating your program by solving the above examples.
Extra credit for other interesting examples.
* [[Solve a Hidato puzzle]]
* [[Solve a Holy Knight's tour]]
Line 219 ⟶ 224:
}
</lang>
{{Out}}
<pre>
49 50 51 52 53 54 75 76 81
Line 346 ⟶ 351:
end</lang>
{{Out}}Sample runs:
<pre>
->numbrix <numbrix1.in
Line 676 ⟶ 681:
end /*r*/
say; return</lang>
<pre>
. . . . . . . . .
Line 702 ⟶ 707:
27 26 23 22 9 8 7 6 5
</pre>
<pre>
. . . . . . . . .
|