default

fun default(boxDigits: Int, random: Random, tokenizer: Tokenizer): SudokuTokenMapper

Provides a default implementation of SudokuTokenMapper.

This implementation includes functionality to generate a token map based on the size of the Sudoku grid and to produce a tokenized sequence of the Sudoku layout using a Tokenizer.

Return

A SudokuTokenMapper instance with the default implementation.

Parameters

boxDigits

The size of the Sudoku grid (e.g., 9 for a 9x9 Sudoku).

random

The random number generator used for shuffling tokens.

tokenizer

The Tokenizer used to populate the Sudoku layout with tokens.