Package-level declarations
Types
Data class representing the coordinates of a box in a Sudoku grid.
Data class representing the coordinates of a cell in a Sudoku grid.
Represents the difficulty levels of Sudoku puzzles.
Exception thrown when a difficulty label cannot be found because the index is out of bounds.
Exception thrown when an invalid seed value is provided.
Represents a seed value for generating randomization in various contexts.
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.
Expands the box by the specified number of rows and columns.
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.
Computes the intersection of this box with another BoxCoordinates instance.
Determines if the box should have a darker background color.
Determines if the cell should have an alternate style, such as a different color.
Checks if the box is in the bottom-right corner of the Sudoku grid.
Checks if the cell is in the bottom-end corner of the Sudoku grid.
Checks if the box is in the bottom-left corner of the Sudoku grid.
Checks if the cell is in the bottom-start corner of the Sudoku grid.
Checks if a given digit is valid within the range of allowed digits for this Sudoku (1 to Dimension.digits).
Checks if the box is in the top-right corner of the Sudoku grid.
Checks if the cell is in the top-end corner of the Sudoku grid.
Checks if the box is in the top-left corner of the Sudoku grid.
Checks if the cell is in the top-start corner of the Sudoku grid.
Converts the box coordinates to a human-readable string representation.
Converts the difficulty level to a string representation using stars.