createGamefunction
Creates an immutable seeded 2×2-block game with a fixed queue and explicit floor schedule.
Import it
import { createGame } from "@johnmorrisdotca/houseki/magnetic-blocks";
Definition
function createGame(options?: import("./types.js").CreateOptions): GameState
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | CreateOptions | Validated native creation, authored challenge, or environment options described by this signature. |
Returns
GameState
Creates an immutable seeded 2×2-block game with a fixed queue and explicit floor schedule.
Examples
import { createGame } from "@johnmorrisdotca/houseki/magnetic-blocks";
console.log(createGame({seed:"docs"}).phase);fallingWhat it prints (run when this page was built)