Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Puzzle AddGivens(IEnumerable<ValueTuple<int, int>>, ConsoleColor?, ConsoleColor?)

  • Declared in: PuzzleSolvers.Puzzle

Declaration

public Puzzle AddGivens(
    IEnumerable<ValueTuple<int, int>> givens,
    ConsoleColor? foreground = null,
    ConsoleColor? background = null
)

Summary

Adds a range of GivenConstraints from the specified collection of tuples.

Parameters

IEnumerable<ValueTuple<int, int>>givens A collection of tuples containing cell indexes and given values.
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).