CellCoordinates

data class CellCoordinates(val row: Int, val col: Int)

Data class representing the coordinates of a cell in a Sudoku grid.

This class encapsulates the details of a cell's position within the grid, defined by its row and column indices.

Constructors

Link copied to clipboard
constructor(row: Int, col: Int)

Properties

Link copied to clipboard
val col: Int

The column index of the cell.

Link copied to clipboard

Gets the coordinates of the cell as a tuple.

Link copied to clipboard
val row: Int

The row index of the cell.

Functions

Link copied to clipboard

Determines if the cell should have an alternate style, such as a different color.

Link copied to clipboard

Checks if the cell is in the bottom-end corner of the Sudoku grid.

Link copied to clipboard

Checks if the cell is in the bottom-start corner of the Sudoku grid.

Link copied to clipboard

Checks if the cell is in the top-end corner of the Sudoku grid.

Link copied to clipboard

Checks if the cell is in the top-start corner of the Sudoku grid.