Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Static class: PuzzleSolvers.PuzzleUtil

Summary

Contains extension methods for code related to PuzzleSolvers.

Static methods

IEnumerable<int>
Adjacent(int cell, int gridWidth = 9, int gridHeight = 9)
Returns the set of cells adjacent to the specified cell (including diagonals).
IEnumerable<int[]>
Combinations(int minValue, int maxValue, int numDigits, bool allowDuplicates = false)
Generates all combinations of numDigits digits, each between minValue and maxValue.
IEnumerable<int>
Orthogonal(int cell, int gridWidth = 9, int gridHeight = 9)
Returns the set of cells orthogonally adjacent to the specified cell (no diagonals).
int
TranslateCoordinate(this string str, int gridWidth = 9)
Converts a convenient coordinate notation into a puzzle-grid index.
IEnumerable<int>
TranslateCoordinates(this string str, int gridWidth = 9)
Converts a convenient coordinate notation into puzzle-grid indices.