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

Static methods

IEnumerable<LessThanConstraint>
FromString(string representation, int gridWidth = 9)
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

ConstraintResultOverride; see base.

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.
boolOverride; see base.
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.