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

TsumikiTutorialtype

One bilingual lesson, with the game it is played on and a line of moves that wins it.

Import it

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

Definition

interface TsumikiTutorial {
    readonly id: string;
    readonly title: LocalizedText;
    readonly objective: LocalizedText;
    readonly seed: string;
    readonly goal: ChallengeGoal;
    readonly stones: readonly number[];
    readonly witness: readonly (readonly [
        number,
        number,
        number
    ])[];
    readonly steps: readonly TsumikiTutorialStep[];
}

Members

NameTypeDescription
idstring
titleLocalizedText
objectiveLocalizedText
seedstring
goalChallengeGoal
stonesreadonly number[]
witnessreadonly (readonly [number, number, number])[]
stepsreadonly TsumikiTutorialStep[]

Examples

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

const value: TsumikiTutorial = tutorialManifest[0]!;
console.log(value.id);
first-line

What it prints (run when this page was built)

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