Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: Puzzle AddGivens(string, ConsoleColor?, ConsoleColor?)

  • Declared in: PuzzleSolvers.Puzzle

Declaration

public Puzzle AddGivens(
    string givens,
    ConsoleColor? foreground = null,
    ConsoleColor? background = null
)

Summary

Adds a range of GivenConstraints from the specified string representation.

Parameters

stringgivens A string such as "3...5...8.9..7.5.....8.41...2.7.....5...28..47.....6...6....8....2...9.1.1.9.5...". Each digit is a given value, while periods (.) indicate no given for that cell.
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).