SudokuGameState

data class SudokuGameState(val grid: List<List<Cell>>, val selectedCell: Cell.Position?, val mistakes: List<Cell.Position>, val isSolved: Boolean)

Represents the current state of the Sudoku game.

Constructors

Link copied to clipboard
constructor(grid: List<List<Cell>>, selectedCell: Cell.Position?, mistakes: List<Cell.Position>, isSolved: Boolean)

Properties

Link copied to clipboard

The current state of the Sudoku grid as a list of lists of cells.

Link copied to clipboard

Boolean flag indicating if the puzzle has been solved.

Link copied to clipboard

A list of positions where mistakes have been made.

Link copied to clipboard

The position of the currently selected cell, if any.