Package-level declarations

Types

Link copied to clipboard
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.

Link copied to clipboard
sealed class GameState

Represents the various states of the Sudoku game.

Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard

ViewModel responsible for managing the state of the Sudoku game.

Functions

Link copied to clipboard
@Preview
fun App(sudokuGameViewModel: SudokuGameViewModel = viewModel { SudokuGameViewModel() })

Main entry point of the Sudoku game UI.

Link copied to clipboard
Link copied to clipboard
fun main()
fun main()
Link copied to clipboard
fun MainViewController(): <Error class: unknown class>
Link copied to clipboard
fun SudokuBoard(dimension: Dimension, grid: List<List<Cell>>, selectedCell: Cell.Position?, onCellSelected: (row: Int, col: Int) -> Unit, onCellValueUpdated: (row: Int, col: Int, newValue: Int) -> Unit)

Displays the Sudoku board based on the provided grid and dimension.

Link copied to clipboard
fun SudokuCell(cell: Cell, modifier: Modifier = Modifier)

Represents an individual cell in the Sudoku grid.