Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Puzzle AddGivens(int?[], ConsoleColor?, ConsoleColor?)

  • Declared in: PuzzleSolvers.Puzzle

Declaration

public Puzzle AddGivens(
    int?[] givens,
    ConsoleColor? foreground = null,
    ConsoleColor? background = null
)

Summary

Adds a range of GivenConstraints from the specified array representation.

Parameters

int?[]givens An array containing integers and null values. Each non-null value translates to a given for the cell in the same position.
ConsoleColor?foreground Color to use when outputting a solution with Puzzle.SolutionToConsole(int?[], int).
ConsoleColor?background Background color to use when outputting a solution with Puzzle.SolutionToConsole(int?[], int).