Skip to the content

Houseki宝石

Run five native gem and stone engines, play measured challenges and lessons, and save deterministic games.

Houseki (宝石) is Japanese for a gem or precious stone. About the name

Contents

Reference · Tsumiki

advanceTicksfunction

Advances nothing: a placement is whole the moment it is made. There so a host can treat this game as it treats the falling ones.

Import it

import { advanceTicks } from "@johnmorrisdotca/houseki/tsumiki";

Definition

function advanceTicks(state: GameState, ticks: number): ActionResult

Parameters

NameTypeDescription
stateGameState

The game.

ticksnumber

How many ticks would pass.

Returns

ActionResult

The same state: nothing in this game moves on its own.

Examples

import { advanceTicks, createGame } from "@johnmorrisdotca/houseki/tsumiki";
console.log(advanceTicks(createGame({ seed: "demo" }), 1).accepted);
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/houseki 0.5.0.