Declaration
public static IEnumerable<int[]> Solve(
int w,
int?[] grid,
bool debugOutput = false
)
Summary
Solves a Fillomino puzzle of the specified size.
Parameters
int | w |
Width of the grid. |
int?[] | grid |
Givens. The height of the grid is calculated from the array’s length and w. |
bool | debugOutput |
Outputs information to the console as the algorithm progresses. |
Returns
Each solution returned is represented as the filled grid. To get a list of the polyominoes instead, use
Fillomino.SolveP(int, int?[], bool).