SudokuBoard
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.
Parameters
dimension
The dimension of the Sudoku board (e.g., 9x9).
grid
The current state of the Sudoku board, represented as a list of rows with cells.
selectedCell
The currently selected cell, if any.
onCellSelected
Callback invoked when a cell is selected by the user.
onCellValueUpdated
Callback invoked when the value of a cell is updated by the user.