Reference
Peg-solitaire element
import { … } from "@johnmorrisdotca/tobiishi/element";
10.0 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
defineGame | function | Registers the default game or a subclass under a host's tag. |
defineTobiishi | function | Compatible registration name, with an optional registry. |
TOBIISHI_EMBED_OPTION_KEYS | constant | The native mounted options, checked by the shared builder. |
TobiishiElementOptions | type | Host games, witnesses, palettes, external settings and the original persistence callback. |
TobiishiGame | class | A peg-solitaire element with reflected choices and preserved native player state. |