Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static method: IEnumerable<int[][]> SolveP(int, int?[], bool)

Declaration

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

Summary

Solves a Fillomino puzzle of the specified size.

Parameters

intw Width of the grid.
int?[]grid Givens. The height of the grid is calculated from the array’s length and w.
booldebugOutput 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.