Contains extension methods for code related to PuzzleSolvers.
IEnumerable<int> | Adjacent(int cell, int gridWidth = 9, int gridHeight = 9) |
Returns the set of cells adjacent to the specified cell (including diagonals). |
string | |
Expresses the given cell as letter-number coordinates (top-left corner is A1). |
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> | Diagonal(int cell, int gridWidth = 9, int gridHeight = 9) |
Returns the set of cells diagonal from the specified cell. |
bool | IsAdjacent(this int cell1, int cell2, int gridWidth = 9, int gridHeight = 9) |
Determines if cell1 and cell2 are adjacent (including diagonally). |
bool | IsDiagonal(this int cell1, int cell2, int gridWidth = 9, int gridHeight = 9) |
Determines if cell1 and cell2 are diagonally adjacent. |
bool | IsOrthogonal(this int cell1, int cell2, int gridWidth = 9, int gridHeight = 9) |
Determines if cell1 and cell2 are orthogonally adjacent (not including
diagonally). |
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 | |
Converts a convenient coordinate notation into a puzzle-grid index. |
IEnumerable<int> | |
Converts a convenient coordinate notation into puzzle-grid indices. |