populateLayout

abstract fun populateLayout(layout: Layout, sequence: String, tokenMap: TokenMap): Array<Array<String>>

Populates a layout with values from a sequence, replacing tokens as needed.

Return

The populated board.

Parameters

layout

The layout to be populated.

sequence

The input sequence containing tokens.

tokenMap

A map of tokens to their replacement values.