Solve a Hidato puzzle: Difference between revisions
Content added Content deleted
(Added C#) |
m (C# added a remark.) |
||
Line 638: | Line 638: | ||
=={{header|C sharp}}== |
=={{header|C sharp}}== |
||
The same solver can solve Hidato, Holy Knight's Tour, Hopido and Numbrix puzzles.<br/> |
The same solver can solve Hidato, Holy Knight's Tour, Hopido and Numbrix puzzles.<br/> |
||
The input can be an array of strings if each cell is one character. |
The input can be an array of strings if each cell is one character. The length of the first row must be the number of columns in the puzzle.<br/> |
||
Any non-numeric value indicates a no-go.<br/> |
|||
If there are cells that require more characters, then a 2-dimensional array of ints must be used. Any number < 0 indicates a no-go. |
If there are cells that require more characters, then a 2-dimensional array of ints must be used. Any number < 0 indicates a no-go.<br/> |
||
The puzzle can be made circular (the end cell must connect to the start cell). In that case, no start cell needs to be given. |
|||
<lang csharp>using System.Collections; |
<lang csharp>using System.Collections; |
||
using System.Collections.Generic; |
using System.Collections.Generic; |