Skip to content

findFrontierTilings

findFrontierTilings<T>(grid, items, getSize, getDedupeKey, getMoveScore, options?): FrontierTiling<T>[]

Defined in: frontier-tiling.ts:45

Finds all possible tilings of the given items in the given grid, starting from the first empty cell.

The search is depth-first and will stop either: - when the maximum number of component rows is reached, - when the maximum number of solutions is reached, or - when the maximum number of nodes is reached.

T

StripGrid2<T>

readonly T[]

(item) => GridSize2

(item) => string

(move) => number

FrontierTilingOptions

FrontierTiling<T>[]