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

GoalHoletype

Named goal hole and its localized menu labels.

Import it

import type { GoalHole } from "@johnmorrisdotca/tobiishi";

Definition

type GoalHole = Readonly<{
    id: string;
    names: Readonly<Record<"en" | "ja", string>>;
    x: number;
    y: number;
}>;

Members

NameTypeDescription
idstring
namesReadonly<Record<"en" | "ja", string>>
xnumber
ynumber

Examples

import type { GoalHole } from "@johnmorrisdotca/tobiishi";
import { TOBIISHI_CHALLENGE_PACKS } from "@johnmorrisdotca/tobiishi";

const value: GoalHole = TOBIISHI_CHALLENGE_PACKS.english.goals[0];
console.log(value);
{ id: 'centre', names: { en: 'Centre', ja: '中央' }, x: 3, y: 3 }

What it prints (run when this page was built)

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