- Declared in: PuzzleSolvers.Puzzle
Declaration
public ConsoleColoredString SolutionToConsole(
int[] solution,
Func<int, string> getName,
int? width = null
)Summary
Converts a puzzle solution to a
ConsoleColoredString that includes the coloring offered by some
constraints.
Parameters
| int[] | solution |
The solution to be colored. |
| Func<int, string> | getName |
An optional function to stringify values differently. Default is to represent them as integers. |
| int? | width |
The width of the puzzle grid. For a standard Sudoku, this is 9. |