Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

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

Declaration

public static IEnumerable<int[]> Solve(
    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 the filled grid. To get a list of the polyominoes instead, use Fillomino.SolveP(int, int?[], bool).