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 · Native peg-solitaire player

Playertype

Controls for reading, replacing, updating presentation or unmounting one player instance.

Import it

import type { Player } from "@johnmorrisdotca/tobiishi/play";

Definition

type Player = {
    getGame: () => Game;
    setGame: (game: Game) => void;
    set: (changes: Pick<MountOptions, "language" | "material" | "theme" | "justBoard">) => void;
    destroy: () => void;
};

Members

NameTypeDescription
getGame() => Game
setGame(game: Game) => void
set(changes: Pick<MountOptions, "language" | "material" | "theme" | "justBoard">) => void
destroy() => void

Examples

import type { Player } from "@johnmorrisdotca/tobiishi/play";
const setJapanese = (player: Player): void => player.set({ language: "ja" });
console.log(typeof setJapanese);
function

What it prints (run when this page was built)

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