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 · Boards, rules and challenges

classicTrianglefunction

Returns the full triangle with the apex empty and any final hole accepted.

Import it

import { classicTriangle } from "@johnmorrisdotca/tobiishi";

Definition

function classicTriangle(): Challenge

Returns

Readonly<{ game: Game; answer: readonly Jump[]; seed: string; }>

Returns the full triangle with the apex empty and any final hole accepted.

Examples

import { classicTriangle } from "@johnmorrisdotca/tobiishi";

console.log(classicTriangle().answer.length);
13

What it prints (run when this page was built)

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