Factory

class Factory(schemas: SudokuSchemas, spec: SudokuSpec)

Factory class for creating instances of SudoklifyAssembler.

The Factory class provides methods to create the necessary components for the SudoklifyAssembler, including the layout transformer and token sequence provider, based on the provided SudokuSpec.

Example:

val factory = SudoklifyAssembler.Factory(schemas, spec)
val assembler = factory.createAssembler()
val puzzle = assembler.assembleSudoku()
println(puzzle)

Constructors

Link copied to clipboard
constructor(schemas: SudokuSchemas, spec: SudokuSpec)

Functions

Link copied to clipboard

Creates a SudoklifyAssembler instance with the configured SudokuSpec.