toBoard

fun String.toBoard(sudokuType: SudokuType): Array<Array<String>>

Converts a SudokuString to a list of lists of strings, representing the Sudoku puzzle in a more granular format.

Return

A list of lists of strings representing the Sudoku puzzle.

Parameters

sudokuType

The sudoku type, which determines the size of the Sudoku puzzle.


fun String.toBoard(boxDigits: Int): Array<Array<String>>

Deprecated

Use the `toBoard(sudokuType: SudokuType)` function instead.

Converts a SudokuString to a Board object with the specified number of digits per box.

Return

A Board representing the Sudoku puzzle.

Parameters

boxDigits

The number of digits used to represent each box in the Sudoku puzzle.