toSudokuIntArray

fun String.toSudokuIntArray(sudokuType: SudokuType): Array<IntArray>

Converts the provided Sudoku puzzle string into a 2D integer array representation. This method utilizes a SudokuParser object internally to handle the parsing and conversion process.

Return

A 2D array of integers representing the parsed Sudoku puzzle.

Parameters

sudokuType

The sudoku type of the Sudoku puzzle (e.g., 4x4, 9x9).

Throws

if the provided Sudoku puzzle string is invalid.