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

createTutorialfunction

Makes a lesson's game; throws for a lesson that does not exist.

Import it

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

Definition

function createTutorial(id: string): GameState

Parameters

NameTypeDescription
idstring

A lesson's id.

Returns

GameState

A new game of that lesson. Throws where there is no such lesson.

Examples

import { createTutorial } from "@johnmorrisdotca/houseki/tsumiki";
console.log(createTutorial("first-line").settings.mode);
challenge

What it prints (run when this page was built)

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