Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Constructor: NeighborSumConstraint(bool, int, int[], IEnumerable<UniquenessConstraint>, int, int, int, int)

Declaration

public NeighborSumConstraint(
    bool isCol,
    int rowCol,
    int[] clue,
    IEnumerable<UniquenessConstraint> furtherRestrictions = null,
    int gridWidth = 9,
    int gridHeight = 9,
    int minValue = 1,
    int maxValue = 9
)

Summary

Constructor.

Parameters

boolisCol If true, the constraint applies to a column; otherwise a row.
introwCol The row or column (depending on isCol).
int[]clue The set of neighbor sums. Currently only 1 or 2 numbers are supported.
IEnumerable<UniquenessConstraint>furtherRestrictions Pass in a UniquenessConstraint collection to restrict the number of combinations generated. This can yield profound improvements in the speed of finding solutions. For example, you can construct a Sudoku instance, then construct this NeighborSumConstraint by passing in sudoku.Constraints.OfType<UniquenessConstraint>().
intgridWidth The width of the grid (default: 9).
intgridHeight The height of the grid (default: 9).
intminValueThis parameter is not documented.
intmaxValueThis parameter is not documented.