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

statusOffunction

A game's figures: its phase, its score, its lines and how far along its goal it is.

Import it

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

Definition

function statusOf(state: GameState): GameStatus

Parameters

NameTypeDescription
stateGameState

The game.

Returns

GameStatus

Its phase, score, lines, moves, stones left and how far along its goal it is.

Examples

import { createGame, statusOf } from "@johnmorrisdotca/houseki/tsumiki";
console.log(statusOf(createGame({ seed: "demo" })).score);
0

What it prints (run when this page was built)

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