spinAndLand()
pixi-reels / testing / spinAndLand
Function: spinAndLand()
function spinAndLand(reelSet: ReelSet, grid: SpinAndLandGrid): Promise<SpinResult>;
Defined in: testing/testHarness.ts:160
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.
Accepts plain visible-cells string[][] (each inner array becomes the
visible field of a fresh ColumnTarget) or the explicit ColumnTarget[]
shape (passed straight through; use this to target buffer cells).
Parameters
| Parameter | Type |
|---|---|
reelSet | ReelSet |
grid | SpinAndLandGrid |
Returns
Promise<SpinResult>