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

Actiontype

One move: a piece from the tray, placed with its top left on a cell.

Import it

import type { Action } from "@johnmorrisdotca/houseki/tsumiki";

Definition

type Action = {
    readonly kind: "place";
    readonly slot: number;
    readonly row: number;
    readonly column: number;
};

Members

NameTypeDescription
kind"place"
slotnumber
rownumber
columnnumber

Examples

import type { Action } from "@johnmorrisdotca/houseki/tsumiki";

const value: Action = { kind: "place", slot: 0, row: 2, column: 3 };
console.log(value.kind);
place

What it prints (run when this page was built)

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