landingYfunction
Returns the exact landing row for the current rigid triplet.
Import it
import { landingY } from "@johnmorrisdotca/houseki/falling-triplets";
Definition
function landingY(state: GameState): number | null
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The immutable native state to read or transition; the input is retained. |
Returns
number | null
Returns the exact landing row for the current rigid triplet. Returns null when there is no active piece or applicable preview.
Examples
import { createGame, landingY } from "@johnmorrisdotca/houseki/falling-triplets";
const state=createGame({seed:"docs"});
console.log(landingY(state));10What it prints (run when this page was built)