Declaration
public static IEnumerable<bool[]> Solve(
int width,
int height,
int?[] clues = null,
Random randomizer = null,
int minNumLoops = 1,
int maxNumLoops = 1
)
Summary
Solves a Slitherlink puzzle on a rectangular grid and returns all solutions found.
Parameters
int | width |
Width of the grid in squares. |
int | height |
Height of the grid in squares. |
int?[] | clues |
Clues (number of edges that are part of the loop). May be null , in which case all possible Slitherlinks
of the specified size are generated. |
Random | randomizer |
Permits the results to be randomized. |
int | minNumLoops |
Minimum number of loops allowed in the solution. |
int | maxNumLoops |
Maximum number of loops allowed in the solution. |
Returns
A boolean array for each solution. The array specifies which cells are inside of the loop.