Skip to content

gameboardPlanIndex

gameboardPlanIndex(plan): GameboardPlanIndex

Defined in: src/gameboard/gameboard.ts:273

Return memoized indexes for a GameboardPlan, building them lazily the first time and caching per-plan thereafter (PRD B4).

Hot-path callers should prefer this over inlining new Map(plan.tiles.map(...)) — that rebuild cost shows up under profiling on every render of large boards.

GameboardPlan

GameboardPlanIndex