Reference · Boards, rules and challenges
TOBIISHI_CHALLENGE_PACKSconstant
Named challenge pack metadata; each goal is a distinct hole with a legal witness.
Import it
import { TOBIISHI_CHALLENGE_PACKS } from "@johnmorrisdotca/tobiishi";
Definition
const TOBIISHI_CHALLENGE_PACKS: Readonly<Record<Shape, Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }>>>
Members
| Name | Type | Description |
|---|---|---|
english | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
european | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
triangle | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
diamond | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
heart | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
star | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
hexagon | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
wide | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> | |
tall | Readonly<{ title: Readonly<Record<"en" | "ja", string>>; shape: Shape; goals: readonly GoalHole[]; }> |
Examples
import { TOBIISHI_CHALLENGE_PACKS } from "@johnmorrisdotca/tobiishi";
console.log(Object.keys(TOBIISHI_CHALLENGE_PACKS));[
'english', 'triangle',
'european', 'diamond',
'heart', 'star',
'hexagon', 'wide',
'tall'
]What it prints (run when this page was built)