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 · Colour Chains

getTutorialfunction

Find a persistent interactive lesson by its stable ID.

Import it

import { getTutorial } from "@johnmorrisdotca/houseki/colour-chains";

Definition

function getTutorial(id: string): ChainTutorialDefinition | undefined

Parameters

NameTypeDescription
idstring

A stable content id, or the one-based display number when numbers are accepted.

Returns

ChainTutorialDefinition | undefined

Find a persistent interactive lesson by its stable ID. Returns undefined when the id or display number is absent.

Examples

import { getTutorial, tutorialManifest } from "@johnmorrisdotca/houseki/colour-chains";

console.log(getTutorial(tutorialManifest[0].id)?.id);
rotate-to-link

What it prints (run when this page was built)

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