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

THEMESconstant

Palette values used by the SVG renderer.

Import it

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

Definition

const THEMES: Record<Material, Theme> = {
    stone: { board: "#f4efe4", hole: "#6b6f68", peg: "#1f2320", edge: "#141614", accent: "#b5452c" },
    wood: { board: "#e2ba7a", hole: "#725640", peg: "#ab633a", edge: "#633b25", accent: "#b5452c" },
    glass: { board: "#fbf8f1", hole: "#6b6f68", peg: "#579caa", edge: "#265865", accent: "#b5452c" },
}

Members

NameTypeDescription
stoneTheme
woodTheme
glassTheme

Examples

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

console.log(THEMES.wood);
{
  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.