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

STRINGSconstant

Localized English and Japanese labels used by the player.

Import it

import { STRINGS } from "@johnmorrisdotca/tobiishi/play";

Definition

const STRINGS: { readonly en: { readonly title: "Peg Solitaire"; readonly instructions: "Choose a peg, then an empty hole two spaces away. Jump over one peg to remove it. Leave one peg; if a hole is marked, finish there."; readonly newChallenge: "New challenge"; readonly undo: "Undo"; readonly restart: "Restart"; readonly hint: "Hint"; readonly remaining: "pegs left"; readonly won: "Solved — one peg remains!"; readonly stuck: "No jumps remain. Undo a move to try another path."; readonly selected: "Selected"; readonly peg: "Peg"; readonly hole: "Empty hole"; readonly target: "goal"; readonly limit: "No hint found within the search budget."; readonly impossible: "This position cannot reach the goal."; readonly move: "Jump made."; readonly change: "Board"; readonly material: "Pieces"; readonly help: "Hints use a bounded search; they can take a moment on a full board."; }; readonly ja: { readonly title: "ペグ・ソリティア"; readonly instructions: "石を選び、2つ先の空いた穴を選びます。間の石を飛び越えると、その石が取り除かれます。石を1つ残しましょう。目印がある場合は、その穴で終えます。"; readonly newChallenge: "新しい問題"; readonly undo: "戻す"; readonly restart: "やり直す"; readonly hint: "ヒント"; readonly remaining: "個の石"; readonly won: "完成!石が1つ残りました。"; readonly stuck: "動かせる石がありません。戻して別の道を試しましょう。"; readonly selected: "選択中"; readonly peg: "石"; readonly hole: "空いた穴"; readonly target: "ゴール"; readonly limit: "探索回数の上限までにヒントが見つかりませんでした。"; readonly impossible: "この配置からはゴールに到達できません。"; readonly move: "石を動かしました。"; readonly change: "盤"; readonly material: "石の素材"; readonly help: "ヒントには探索回数の上限があります。石が多い盤では少し時間がかかります。"; }; } = {
    en: {
        title: "Peg Solitaire",
        instructions: "Choose a peg, then an empty hole two spaces away. Jump over one peg to remove it. Leave one peg; if a hole is marked, finish there.",
        newChallenge: "New challenge",
        undo: "Undo",
        restart: "Restart",
        hint: "Hint",
        remaining: "pegs left",
        won: "Solved — one peg remains!",
        stuck: "No jumps remain. Undo a move to try another path.",
        selected: "Selected",
        peg: "Peg",
        hole: "Empty hole",
        target: "goal",
        limit: "No hint found within the search budget.",
        impossible: "This position cannot reach the goal.",
        move: "Jump made.",
        change: "Board",
        material: "Pieces",
        help: "Hints use a bounded search; they can take a moment on a full board.",
    },
    ja: {
        title: "ペグ・ソリティア",
        instructions: "石を選び、2つ先の空いた穴を選びます。間の石を飛び越えると、その石が取り除かれます。石を1つ残しましょう。目印がある場合は、その穴で終えます。",
        newChallenge: "新しい問題",
        undo: "戻す",
        restart: "やり直す",
        hint: "ヒント",
        remaining: "個の石",
        won: "完成!石が1つ残りました。",
        stuck: "動かせる石がありません。戻して別の道を試しましょう。",
        selected: "選択中",
        peg: "石",
        hole: "空いた穴",
        target: "ゴール",
        limit: "探索回数の上限までにヒントが見つかりませんでした。",
        impossible: "この配置からはゴールに到達できません。",
        move: "石を動かしました。",
        change: "盤",
        material: "石の素材",
        help: "ヒントには探索回数の上限があります。石が多い盤では少し時間がかかります。",
    },
} as const

Members

NameTypeDescription
en{ readonly title: "Peg Solitaire"; readonly instructions: "Choose a peg, then an empty hole two spaces away. Jump over one peg to remove it. Leave one peg; if a hole is marked, finish there."; readonly newChallenge: "New challenge"; readonly undo: "Undo"; readonly restart: "Restart"; readonly hint: "Hint"; readonly remaining: "pegs left"; readonly won: "Solved — one peg remains!"; readonly stuck: "No jumps remain. Undo a move to try another path."; readonly selected: "Selected"; readonly peg: "Peg"; readonly hole: "Empty hole"; readonly target: "goal"; readonly limit: "No hint found within the search budget."; readonly impossible: "This position cannot reach the goal."; readonly move: "Jump made."; readonly change: "Board"; readonly material: "Pieces"; readonly help: "Hints use a bounded search; they can take a moment on a full board."; }
ja{ readonly title: "ペグ・ソリティア"; readonly instructions: "石を選び、2つ先の空いた穴を選びます。間の石を飛び越えると、その石が取り除かれます。石を1つ残しましょう。目印がある場合は、その穴で終えます。"; readonly newChallenge: "新しい問題"; readonly undo: "戻す"; readonly restart: "やり直す"; readonly hint: "ヒント"; readonly remaining: "個の石"; readonly won: "完成!石が1つ残りました。"; readonly stuck: "動かせる石がありません。戻して別の道を試しましょう。"; readonly selected: "選択中"; readonly peg: "石"; readonly hole: "空いた穴"; readonly target: "ゴール"; readonly limit: "探索回数の上限までにヒントが見つかりませんでした。"; readonly impossible: "この配置からはゴールに到達できません。"; readonly move: "石を動かしました。"; readonly change: "盤"; readonly material: "石の素材"; readonly help: "ヒントには探索回数の上限があります。石が多い盤では少し時間がかかります。"; }

Examples

import { STRINGS } from "@johnmorrisdotca/tobiishi/play";

console.log(STRINGS.ja.title);
ペグ・ソリティア

What it prints (run when this page was built)

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