Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: PuzzleSolvers.XSumUniquenessConstraint

Summary

Describes an “X-sum” constraint: the first X numbers must sum up to a specified total, where X is the first of those digits. 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

XSumUniquenessConstraint(int sum, IEnumerable<int> affectedCells, int minValue = 1, int maxValue = 9)
Describes an “X-sum” constraint: the first X numbers must sum up to a specified total, where X is the first of those digits. This constraint implies a uniqueness constraint. (see also remarks)

Instance methods

ConstraintResultRefer to the documentation for Constraint.Process.
stringOverride.

Instance properties

intThe total that the affected numbers must sum up to.