Summary
Describes a “sandwich wraparound” constraint: the numbers that follow a specific number and precede a specific
other number, wrapping around the grid if necessary, must sum up to a specified total. This constraint implies a
uniqueness constraint.
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
Instance methods
Static methods
int | |
Converts a convenient coordinate notation into a puzzle-grid index. |
IEnumerable<int> | |
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. |
bool | | Override; see base. |
int?[][] | | The set of combinations allowed for the specified set of cells. |
int? | | Override; see base. |
int | | The total that the sandwiched numbers must sum up to. |
int | | The number that forms the beginning of the sandwich. |
int | | The number that forms the end of the sandwich. |