SudokuSpec

data class SudokuSpec(val type: Dimension, val seed: Seed, val difficulty: Difficulty)

Data class representing specs for a Sudoku puzzle.

Constructors

Link copied to clipboard
constructor(type: Dimension, seed: Seed, difficulty: Difficulty)

Types

Link copied to clipboard
data class Builder(var difficulty: Difficulty = Difficulty.EASY, var seed: Seed = Seed.Random(), var type: Dimension = Dimension.Unspecified)

Builder class for creating SudokuSpec instances.

Properties

Link copied to clipboard

The difficulty level of the puzzle.

Link copied to clipboard
val seed: Seed

The seed value used for generating the puzzle.

Link copied to clipboard

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

Functions

Link copied to clipboard

Creates a new Builder instance with the same properties as this SudokuSpec.