Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Puzzle AddConstraints(IEnumerable<Constraint>, bool)

  • Declared in: PuzzleSolvers.Puzzle

Declaration

public Puzzle AddConstraints(
    IEnumerable<Constraint> constraints,
    bool avoidColors = false
)

Summary

Adds the specified constraints to the Puzzle.Constraints list.

Parameters

IEnumerable<Constraint>constraints The constraints to be added.
boolavoidColors If false (the default), the constraints are automatically colored using 7 console colors in a cyclic sequence, starting from DarkBlue. Use true to avoid adding the colors.