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

Blocktype

One filled cell: its run-local identity, its colour, and whether it is a stone a challenge asks to be cleared.

Import it

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

Definition

interface Block {
    readonly id: number;
    readonly colour: BlockColour;
    readonly stone: boolean;
}

Members

NameTypeDescription
idnumber
colourBlockColour
stoneboolean

Examples

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

const value: Block = { id: 1, colour: "red", stone: false };
console.log(value.colour);
red

What it prints (run when this page was built)

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