Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: PuzzleSolvers.LessThanConstraint

Summary

Describes a constraint in a number-placement puzzle (such as a Thermometer Sudoku) where a series of cells must be in ascending order.

Constructors

LessThanConstraint(IEnumerable<int> affectedCells, int minDifference = 1)
Describes a constraint in a number-placement puzzle (such as a Thermometer Sudoku) where a series of cells must be in ascending order.

Static methods

IEnumerable<LessThanConstraint>
FromString(string representation, int gridWidth = 9, int minDifference = 1)
Generates multiple LessThanConstraint from a semicolon-separated list of coordinate regions represented in the format understood by Constraint.TranslateCoordinates(string, int).
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 methods

ConstraintResultRefer to the documentation for Constraint.Process.

Instance properties

int[] Contains the region of cells affected by this constraint (the “thermometer”). The order of cells in this array is significant as the constraint assumes these to be ordered from smallest to largest value.
boolRefer to the documentation for Constraint.CanReevaluate.
intSpecifies the minimum difference between adjacent cells.
int? Indicates an approximate number of possible combinations of digits this constraint can still accommodate. This will help the solver prioritize cells when multiple cells have the same number of combinations individually.