getSequence

abstract fun getSequence(layout: Layout, seedSequence: SudokuString, tokenMap: TokenMap): Array<Array<String>>

Produces a sequence of tokens for the given Sudoku layout and seed sequence.

This method uses the provided tokenMap to convert the layout into a sequence of tokens and then applies the seed sequence to ensure reproducibility or specific tokenization patterns.

Return

A 2D array of tokens representing the tokenized Sudoku layout.

Parameters

layout

The Sudoku layout to be tokenized.

seedSequence

The seed sequence used to generate reproducible token sequences.

tokenMap

The map of tokens to values used for tokenization.