FifteenByFifteen
Object representing a 15x15 Sudoku dimension.
Properties
The size of the Sudoku grid (width and height).
The total number of cells in the Sudoku grid. This is calculated by squaring the uniqueDigitsCount. Each cell within the grid can hold one of the uniqueDigitsCount distinct digits (or symbols).
The number of distinct digits used in the Sudoku grid. This represents the total number of unique symbols that can be placed within a single cell of the Sudoku. It is calculated as the product of the grid width and height.
Functions
Checks if two cells are in the same box based on their indices.
This alternative way to check if two cells are in the same box uses their row and column indices directly.
Checks if two cells are in the same column based on their indices.
Checks if two cells are in the same row based on their indices.
Returns a list containing all valid digits (1 to Dimension.digits) for the Sudoku.
Returns the top-left and bottom-right coordinates of the box containing the cell at the specified row and column.
Returns the box index (within the range 0 to Dimension.boxes - 1) for a given cell at the specified row and column.
Returns the box column index (within the range 0 to (Dimension.width - 1 / Dimension.boxWidth - 1)) for a given cell index.
Returns the box row index (within the range 0 to (Dimension.height - 1 / Dimension.boxHeight - 1)) for a given cell index.
Returns the column index (within the range 0 to Dimension.width - 1) for a given cell index.
Returns the row index (within the range 0 to Dimension.height - 1) for a given cell index.
Checks if a given digit is valid within the range of allowed digits for this Sudoku (1 to Dimension.digits).