BoxCoordinates
Data class representing the coordinates of a box in a Sudoku grid.
This class encapsulates the details of a rectangular box within a Sudoku grid, defined by its top-left and bottom-right coordinates. It provides additional properties to easily access the dimensions of the box and its corner coordinates.
Properties
Gets the coordinates of the bottom-right cell of the box as a tuple.
The column index of the bottom-right cell in the box.
The row index of the bottom-right cell in the box.
The column index of the top-left cell in the box.
The row index of the top-left cell in the box.
Functions
Expands the box by the specified number of rows and columns.
Computes the intersection of this box with another BoxCoordinates instance.
Determines if the box should have a darker background color.
Checks if the box is in the bottom-right corner of the Sudoku grid.
Checks if the box is in the bottom-left corner of the Sudoku grid.
Checks if the box is in the top-right corner of the Sudoku grid.
Checks if the box is in the top-left corner of the Sudoku grid.
Converts the box coordinates to a human-readable string representation.