Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: PuzzleSolvers.FindTheValueConstraint

Summary

Describes a constraint in a number-placement puzzle that indicates that whatever value the specified FindTheValueConstraint.Cell contains, the cell that many steps away must contain FindTheValueConstraint.Value.

Example

For example, if FindTheValueConstraint.Cell is the top-left corner and the constraint covers the top row, then FindTheValueConstraint.Cell can only contain a 3 if the fourth cell (3 cells to the right of the top-left corner) contains FindTheValueConstraint.Value.

Constructors

FindTheValueConstraint(int cell, int value, IEnumerable<int> affectedCells)
Constructor.
FindTheValueConstraint(int cell, int gridWidth, int gridHeight, FindTheValueConstraint.CellDirection direction, int value)
Convenience constructor to generate a FindTheValueConstraint given a grid position, size, and a direction.

Instance methods

ConstraintResultRefer to the documentation for Constraint.Process.

Instance properties

boolRefer to the documentation for Constraint.CanReevaluate.
intThe “focus” cell that indicates how far FindTheValueConstraint.Value is.
intThe value that must be in the cell a number of steps away from FindTheValueConstraint.Cell.

Nested types

Used to indicate directions in FindTheValueConstraint(int, int, int, FindTheValueConstraint.CellDirection, int).