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 · Peg-solitaire element

defineTobiishifunction

Compatible registration name, with an optional registry. Safe on a server.

Import it

import { defineTobiishi } from "@johnmorrisdotca/tobiishi/element";

Also exported from: @johnmorrisdotca/tobiishi/element/define

Definition

function defineTobiishi(tag?: string, registry?: CustomElementRegistry | undefined): void

Parameters

NameTypeDescription
tag (optional)string

The custom tag name, or tobiishi-game by default.

registry (optional)CustomElementRegistry | undefined

The page registry, or undefined on a server.

Examples

import { defineTobiishi } from "@johnmorrisdotca/tobiishi/element";
defineTobiishi();
console.log(typeof defineTobiishi);
function

What it prints (run when this page was built)

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