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).
string
AsCoordinate(this int cell, int gridWidth = 9)
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
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.

Static fields

int[]Specifies the delta-x for directions Up, Right, Down, Left in order.
int[]Specifies the delta-y for directions Up, Right, Down, Left in order.