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.
Type Parameters
Section titled “Type Parameters”T
Parameters
Section titled “Parameters”StripGrid2<T>
readonly T[]
getSize
Section titled “getSize”(item) => GridSize2
getDedupeKey
Section titled “getDedupeKey”(item) => string
getMoveScore
Section titled “getMoveScore”(move) => number
options?
Section titled “options?”Returns
Section titled “Returns”FrontierTiling<T>[]