Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: PuzzleSolvers.ConsecutiveUniquenessConstraint

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).

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.

Constructors

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

Instance methods

ConstraintResultOverride; see base.
stringOverride.

Static methods

int
TranslateCoordinate(string str, int gridWidth = 9)
Converts a convenient coordinate notation into a puzzle-grid index.
IEnumerable<int>
TranslateCoordinates(string str, int gridWidth = 9)
Converts a convenient coordinate notation into puzzle-grid indices.

Instance properties

int[]The group of cells affected by this constraint, or null if it affects all of them.
boolOverride; see base.
int?[][]The set of combinations allowed for the specified set of cells.
int?Override; see base.