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

Celltype

A hole's stable coordinate within a board shape, independent of its drawing.

Import it

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

Definition

type Cell = Readonly<{
    x: number;
    y: number;
}>;

Members

NameTypeDescription
xnumber
ynumber

Examples

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

const value: Cell = {x:0,y:0};
console.log(value);
{ x: 0, y: 0 }

What it prints (run when this page was built)

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