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

createGamefunction

Makes a free game or a Daily: a Daily's seed is its date, so one date is one game for everybody.

Import it

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

Definition

function createGame(options?: CreateOptions): GameState

Parameters

NameTypeDescription
options (optional)CreateOptions

A seed for a free game, or a mode and a date for a Daily.

Returns

GameState

A new game, its tray dealt.

Examples

import { createGame } from "@johnmorrisdotca/houseki/tsumiki";
console.log(createGame({ seed: "demo" }).tray.length);
3

What it prints (run when this page was built)

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