Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: LessThanConstraint(IEnumerable<int>, int)

Declaration

public LessThanConstraint(
    IEnumerable<int> affectedCells,
    int minDifference = 1
)

Summary

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

Parameters

IEnumerable<int>affectedCells The cells where, in order, each must be less than the next; in other words, the values must be in ascending order.
intminDifference Specifies the minimum difference between adjacent cells. The default is 1. This can be set to 0 to achieve a “slow thermometer”.