Skip to the content

Tobiishi飛び石

Jump pegs on nine native boards, generate seeded solvable challenges and build a peg-solitaire player for your page.

Tobiishi is the Japanese word 飛び石 for stepping stones. About the name

Contents

Reference

Register peg solitaire

import { … } from "@johnmorrisdotca/tobiishi/element/define";

10.1 kB minified and gzipped, with everything it imports (measured with esbuild)

Exports

NameKindWhat it is
defineGamefunctionRegisters the default game or a subclass under a host's tag.
defineTobiishifunctionCompatible registration name, with an optional registry.
TOBIISHI_EMBED_OPTION_KEYSconstantThe native mounted options, checked by the shared builder.
TobiishiElementOptionstypeHost games, witnesses, palettes, external settings and the original persistence callback.
TobiishiGameclassA peg-solitaire element with reflected choices and preserved native player state.

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/tobiishi 0.3.1.