本文へ移動

Kazu数

検証済みの数独や論理パズルを作り、標準の規則とヒントを読み、盤を描いたり埋め込んだりできます。

「数」は数字を表す言葉です。 名前について(英語)

目次

リファレンス · 縦横の規則

JUOSAN_STRINGS定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

Native English and Japanese labels and announcements for Juosan.

インポート

import { JUOSAN_STRINGS } from "@johnmorrisdotca/kazu/juosan";

ほかのエクスポート元: @johnmorrisdotca/kazu/juosan/play, @johnmorrisdotca/kazu

定義

const JUOSAN_STRINGS: { readonly en: { readonly title: "Juosan"; readonly ready: "Fill every cell with a horizontal or vertical mark."; readonly won: "Solved."; readonly assisted: "Solved with a hint."; readonly help: "Click a cell to cycle through horizontal, vertical and empty. Press H / V to write; arrow keys move and Delete clears."; readonly undo: "Undo"; readonly hint: "Hint"; readonly restart: "Restart"; readonly check: "Check"; readonly checked: "The marks follow the rules."; readonly wrong: "Some marks break a territory clue or run rule."; readonly horizontal: "horizontal"; readonly vertical: "vertical"; readonly blank: "unmarked"; readonly row: "row"; readonly column: "column"; readonly hintWhy: "This mark follows the printed territory clue and line rules."; }; readonly ja: { readonly title: "じゅうさん"; readonly ready: "各マスに横線か縦線を入れます。"; readonly won: "できました。"; readonly assisted: "ヒントを使ってできました。"; readonly help: "マスをクリックすると、横線、縦線、空欄の順に切り替わります。H / V キーで記入し、矢印キーで移動、Delete で消します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly restart: "最初から"; readonly check: "確認"; readonly checked: "ルールに合っています。"; readonly wrong: "陣地の数字か線の並びを確認してください。"; readonly horizontal: "横線"; readonly vertical: "縦線"; readonly blank: "未記入"; readonly row: "行"; readonly column: "列"; readonly hintWhy: "この線は、陣地の数字と線のルールに合います。"; }; } = {
    en: {
        title: "Juosan",
        ready: "Fill every cell with a horizontal or vertical mark.",
        won: "Solved.",
        assisted: "Solved with a hint.",
        help: "Click a cell to cycle through horizontal, vertical and empty. Press H / V to write; arrow keys move and Delete clears.",
        undo: "Undo",
        hint: "Hint",
        restart: "Restart",
        check: "Check",
        checked: "The marks follow the rules.",
        wrong: "Some marks break a territory clue or run rule.",
        horizontal: "horizontal",
        vertical: "vertical",
        blank: "unmarked",
        row: "row",
        column: "column",
        hintWhy: "This mark follows the printed territory clue and line rules.",
    },
    ja: {
        title: "じゅうさん",
        ready: "各マスに横線か縦線を入れます。",
        won: "できました。",
        assisted: "ヒントを使ってできました。",
        help: "マスをクリックすると、横線、縦線、空欄の順に切り替わります。H / V キーで記入し、矢印キーで移動、Delete で消します。",
        undo: "戻す",
        hint: "ヒント",
        restart: "最初から",
        check: "確認",
        checked: "ルールに合っています。",
        wrong: "陣地の数字か線の並びを確認してください。",
        horizontal: "横線",
        vertical: "縦線",
        blank: "未記入",
        row: "行",
        column: "列",
        hintWhy: "この線は、陣地の数字と線のルールに合います。",
    },
} as const

メンバー

名前型説明
en{ readonly title: "Juosan"; readonly ready: "Fill every cell with a horizontal or vertical mark."; readonly won: "Solved."; readonly assisted: "Solved with a hint."; readonly help: "Click a cell to cycle through horizontal, vertical and empty. Press H / V to write; arrow keys move and Delete clears."; readonly undo: "Undo"; readonly hint: "Hint"; readonly restart: "Restart"; readonly check: "Check"; readonly checked: "The marks follow the rules."; readonly wrong: "Some marks break a territory clue or run rule."; readonly horizontal: "horizontal"; readonly vertical: "vertical"; readonly blank: "unmarked"; readonly row: "row"; readonly column: "column"; readonly hintWhy: "This mark follows the printed territory clue and line rules."; }
ja{ readonly title: "じゅうさん"; readonly ready: "各マスに横線か縦線を入れます。"; readonly won: "できました。"; readonly assisted: "ヒントを使ってできました。"; readonly help: "マスをクリックすると、横線、縦線、空欄の順に切り替わります。H / V キーで記入し、矢印キーで移動、Delete で消します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly restart: "最初から"; readonly check: "確認"; readonly checked: "ルールに合っています。"; readonly wrong: "陣地の数字か線の並びを確認してください。"; readonly horizontal: "横線"; readonly vertical: "縦線"; readonly blank: "未記入"; readonly row: "行"; readonly column: "列"; readonly hintWhy: "この線は、陣地の数字と線のルールに合います。"; }

例

import { JUOSAN_STRINGS } from "@johnmorrisdotca/kazu/juosan";

console.log(Object.keys(JUOSAN_STRINGS.en));
[
  'title',    'ready',
  'won',      'assisted',
  'help',     'undo',
  'hint',     'restart',
  'check',    'checked',
  'wrong',    'horizontal',
  'vertical', 'blank',
  'row',      'column',
  'hintWhy'
]

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kazu 2.1.0 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。