Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: ConsoleColoredString SolutionToConsole(int?[], int)

  • Declared in: PuzzleSolvers.Puzzle

Declaration

public ConsoleColoredString SolutionToConsole(
    int?[] solution,
    int width = 9
)

Summary

Converts a Sudoku solution to a ConsoleColoredString that includes the coloring offered by some constraints.

Parameters

int?[]solution The solution to be colored.
intwidth The width of the puzzle grid. For a standard Sudoku, this is 9.