spinAndLand()
pixi-reels / testing / spinAndLand
Function: spinAndLand()
function spinAndLand(reelSet: ReelSet, grid: ColumnTarget[]): Promise<SpinResult>;
Defined in: testing/testHarness.ts:213
Deterministically run a spin to a target grid.
Internally: spin() -> setResult(grid) -> slamStop(). slamStop() bypasses
all async phases and directly places the symbols (and bypasses the
two-stage skipSpin() boost machine), so the returned promise resolves on
a microtask.
Takes ColumnTarget[], the same as setResult. There is no string[][]
convenience form anywhere in v2.
Parameters#
| Parameter | Type |
|---|---|
reelSet | ReelSet |
grid | ColumnTarget[] |
Returns#
Promise<SpinResult>