createPuzzle

fun SudokuParams.createPuzzle(): SudokuPuzzle

Generates a Sudoku puzzle with the specified parameters.

This function creates a SudokuPuzzle object using the provided SudokuParams. The created puzzle will have the specified difficulty level, seed, and game type.

Receiver

The SudokuParams object containing generation parameters.

Return

A SudokuPuzzle object representing the generated puzzle.

See also

Difficulty
Seed
SudokuType
SudokuPuzzle

Throws

if any of the parameters are invalid.