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 · SVG boards and materials

Themetype

SVG color properties that can be partially overridden by a caller.

Import it

import type { Theme } from "@johnmorrisdotca/tobiishi/draw";

Definition

type Theme = {
    board: string;
    hole: string;
    peg: string;
    edge: string;
    accent: string;
};

Members

NameTypeDescription
boardstring
holestring
pegstring
edgestring
accentstring

Examples

import type { Theme } from "@johnmorrisdotca/tobiishi/draw";
import { THEMES } from "@johnmorrisdotca/tobiishi/draw";

const value: Theme = THEMES.wood;
console.log(value);
{
  board: '#e2ba7a',
  hole: '#725640',
  peg: '#ab633a',
  edge: '#633b25',
  accent: '#b5452c'
}

What it prints (run when this page was built)

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