createSudokuGridProcessor
fun <T> createSudokuGridProcessor(getValue: (T) -> Int, isLocked: (T) -> Boolean, getSolution: (T) -> Int, isError: (T) -> Boolean, updateCell: (row: Int, col: Int, state: SudokuCellState, cell: T) -> T): SudokuGridProcessor<T>
Creates a default implementation of SudokuGridProcessor for a specific grid cell type.
Return
A SudokuGridProcessor implementation with the provided functions.
Parameters
T
The type of the user grid cells.
getValue
Lambda function to get the value of a cell.
isLocked
Lambda function to determine if a cell is locked.
getSolution
Lambda function to get the solution value of a cell.
isError
Lambda function to determine if a cell has an error state.
updateCell
Lambda function to update a cell in the original grid type.