Represents a Castle Wall puzzle, in which the solver must draw a single continuous non-intersecting loop in such a
way that certain predefined squares are either inside or outside a loop.
void | | Adds the specified CastleWall.Clue to this Castle Wall puzzle. |
void | | Adds the specified set of CastleWall.Clues to this Castle Wall puzzle. |
void | AddClues(params CastleWall.Clue[] clues) |
Puzzle | | Adds the specified constraint to the Puzzle.Constraints list. |
Puzzle | |
Adds the specified constraints to the Puzzle.Constraints list. |
Puzzle | |
Adds the specified constraints to the Puzzle.Constraints list. |
Puzzle | AddGivens(params ValueTuple<int, int>[] givens) |
Adds a range of GivenConstraints from the specified array of tuples. |
Puzzle | AddGivens(IEnumerable<ValueTuple<int, int>> givens, ConsoleColor? foreground = null, ConsoleColor? background = null) |
Adds a range of GivenConstraints from the specified collection of tuples. |
Puzzle | AddGivens(string givens, ConsoleColor? foreground = null, ConsoleColor? background = null) |
Adds a range of GivenConstraints from the specified string representation. |
Puzzle | AddGivens(int?[] givens, ConsoleColor? foreground = null, ConsoleColor? background = null) |
Adds a range of GivenConstraints from the specified array representation. |
Puzzle | AddKillerCage(int sum, IEnumerable<int> affectedCells, ConsoleColor? foreground = null, ConsoleColor? background = null) |
Adds a cage (region) for a Killer Sudoku. This is just a SumConstraint and a UniquenessConstraint for the same region. |
Puzzle | AddKillerCage(int sum, string affectedCells, int gridWidth = 9, ConsoleColor? foreground = null, ConsoleColor? background = null) |
ConsoleColoredString | SolutionToConsole(int?[] solution, Func<int?, int, string> getName = null, int width = 9) |
Converts a partial puzzle solution to a ConsoleColoredString that includes the coloring offered
by some constraints. |
ConsoleColoredString | |
ConsoleColoredString | SolutionToConsole(int[] solution, Func<int, int, string> getName = null, int width = 9) |
Converts a puzzle solution to a ConsoleColoredString that includes the coloring offered by some
constraints. |
ConsoleColoredString | |
IEnumerable<int[]> | | Returns a lazy sequence containing the solutions for this puzzle. |
IEnumerable<int> | | Enumerates the set of cells containing Castle Wall clues. |
Dictionary<Constraint, ValueTuple<ConsoleColor?, ConsoleColor?>> | | Contains colors for use by Puzzle.SolutionToConsole(int[], Func<int, string>, int). |
List<Constraint> | | Returns the list of constraints used by this puzzle. |
int | |
The number of cells to be filled in this puzzle. |
int | | The height of the puzzle grid. |
int | |
The maximum value to be placed in a cell. |
int | |
The minimum value to be placed in a cell. |
int | | The width of the puzzle grid. |