Tobiishi documentation
Tobiishi 飛び石 — Peg solitaire
Jump pegs on nine native boards, generate seeded solvable challenges and build a peg-solitaire player for your page.
Install
npm install @johnmorrisdotca/tobiishi
Start here
Entry points
| Import it | What it is | Size |
|---|---|---|
@johnmorrisdotca/SVG boards and materials · 8 exports | 1.1 kB | |
@johnmorrisdotca/Native peg-solitaire player · 5 exports | 7.5 kB | |
@johnmorrisdotca/Peg-solitaire element · 5 exports | 10.0 kB | |
@johnmorrisdotca/Register peg solitaire · 5 exports | 10.1 kB | |
@johnmorrisdotca/Boards, rules and challenges · 37 exports | 3.8 kB |
Guides
How-to
- Moves, goals and assistanceKeep stable cell indices and immutable state through moves, undo and restart.
- Generate and verify seeded challengesUse reverse-growth witnesses and inspect the actual returned length.
- Choose named goal packsPick a real pack goal and understand witness-length difficulty labels.
- Ask the solver within a budgetDistinguish solved, impossible and an unfinished limit result.
- Save and replay a gameValidate versioned progress rather than trusting a claimed final position.
- Draw boards and choose materialsUse native SVG geometry and palette overrides independently of game rules.
- Mount or embed a native gameUse a real host, preserve independent instances and clean up native controls.