Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: ConsecutiveUniquenessConstraint(IEnumerable<int>, int, int)

Declaration

public ConsecutiveUniquenessConstraint(
    IEnumerable<int> affectedCells,
    int minValue = 1,
    int maxValue = 9
)

Summary

Describes a “Renban cage”: the numbers within the region must be unique and form a set of consecutive integers (though not necessarily in order).

Parameters

IEnumerable<int>affectedCells The set of cells affected by this constraint (the “cage”).
intminValue The minimum value of numbers in the grid for this puzzle.
intmaxValue The maximum value of numbers in the grid for this puzzle.

Remarks

Warning: This constraint is very memory-intensive. It is implemented as a CombinationsConstraint with all of the possible number combinations for the specified set of cells. Avoid using this on oversized puzzles.