difficulty

Sets the difficulty level for the Sudoku puzzle.

Return

This builder instance.

Parameters

difficulty

The desired difficulty level.


inline fun difficulty(crossinline difficulty: () -> Difficulty): SudokuSpec.Builder

Sets the difficulty level for the Sudoku puzzle using a lambda function.

Return

This builder instance.

Parameters

difficulty

A lambda that returns the desired difficulty level.