Declaration
public static IEnumerable<int[][]> SolveP(
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 a set of polyominoes. Each polyomino is an array of grid locations.
The size of the polyomino determines the number.