Cell

data class Cell(val value: Int, val isGiven: Boolean, val isError: Boolean, val solution: Int, val row: Int, val col: Int)

Represents a cell in a Sudoku puzzle.

Constructors

Link copied to clipboard
constructor(value: Int, isGiven: Boolean, isError: Boolean, solution: Int, row: Int, col: Int)

Types

Link copied to clipboard
data class Position(val row: Int, val col: Int)

Represents the position of a cell within the Sudoku grid.

Properties

Link copied to clipboard
val col: Int

The column index of the cell in the Sudoku grid.

Link copied to clipboard

Indicates if the cell contains an incorrect value.

Link copied to clipboard

Indicates if the cell is part of the original puzzle (immutable).

Link copied to clipboard
val row: Int

The row index of the cell in the Sudoku grid.

Link copied to clipboard

The correct solution value for this cell.

Link copied to clipboard
val value: Int

The current value of the cell. A value of 0 indicates an empty cell.