Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<int[][]> Solve(int, string, bool)

Declaration

public static IEnumerable<int[][]> Solve(
    int w,
    string grid,
    bool debugOutput = false
)

Summary

Solves a Numberlink puzzle of the specified size.

Parameters

intw Width of the grid.
stringgrid 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).
booldebugOutput 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.