Declaration
public static IEnumerable<int[][]> Solve(
int w,
string grid,
bool debugOutput = false
)
Summary
Solves a Numberlink puzzle of the specified size.
Parameters
int | w |
Width of the grid. |
string | grid |
A string containing the numbers to be linked and '.' s for the available spaces. The height of the grid
is calculated from the array’s length and w. If you need more than 10 digits (0–9), use
Numberlink.Solve(int, int?[], bool). |
bool | debugOutput |
Determines whether some information is output to the console during solve. |
Returns
Each solution returned is represented as a set of links. Each link is an array of grid locations going from
one digit to its matching partner.