Show / Hide Table of Contents

Namespace SudokuSpice.ConstraintBased.Constraints

Classes

BoxUniquenessConstraint

Enforces the constraint that all values in a box must be unique.

ColumnUniquenessConstraint

Enforces the constraint that all values in a column must be unique.

ConstraintUtil

Provides utilities for easily implementing constraints.

DiagonalUniquenessConstraint

Enforces the constraint that all values in on each diagonal must be unique.

MagicSquaresConstraint

Enforces a constraint that certain regions in a puzzle must be magic squares, i.e. the sums of the values in each of their rows, columns, and (optionally) their diagonals add up to the same value.

Note that this does not enforce uniqueness of values within the magic square as a whole. It does, however, prevent value duplication within each row, column, and/or diagonal. This can be combined with the BoxUniquenessConstraint if you need box-level uniqueness.

RowUniquenessConstraint

Enforces the constraint that all values in a row must be unique.

Interfaces

IConstraint

In This Article
Back to top Generated by DocFX