Reference
Native peg-solitaire player
import { … } from "@johnmorrisdotca/tobiishi/play";
7.5 kB minified and gzipped, with everything it imports (measured with esbuild)
Exports
| Name | Kind | What it is |
|---|---|---|
Language | type | Supported player interface languages. |
mount | function | Mount one independent player. |
MountOptions | type | Initial puzzle, display choices, optional settings host, and persistence callback. |
Player | type | Controls for reading, replacing, updating presentation or unmounting one player instance. |
STRINGS | constant | Localized English and Japanese labels used by the player. |