本文へ移動

Kazu数

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

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

目次

リファレンス · ひとりにしてくれを遊ぶ

HITORI_STRINGS定数

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

Native English and Japanese labels and announcements for Hitori.

インポート

import { HITORI_STRINGS } from "@johnmorrisdotca/kazu/hitori/play";

定義

const HITORI_STRINGS: { readonly en: { readonly title: "Hitori"; readonly help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly bad: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly cell: "Row"; readonly column: "column"; readonly shaded: "shaded"; readonly white: "unshaded"; }; readonly ja: { readonly title: "ひとりにしてくれ"; readonly help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly bad: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly cell: "行"; readonly column: "列"; readonly shaded: "黒"; readonly white: "白"; }; } = {
    en: {
        title: "Hitori",
        help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move.",
        undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.",
        bad: "Some rules are broken.", good: "No rule errors yet. Keep going.", noHint: "No proved hint is available.",
        cell: "Row", column: "column", shaded: "shaded", white: "unshaded",
    },
    ja: {
        title: "ひとりにしてくれ",
        help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。",
        undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。",
        bad: "ルールに合わないところがあります。", good: "今のところルール違反はありません。", noHint: "確かなヒントはありません。",
        cell: "行", column: "列", shaded: "黒", white: "白",
    },
} as const

メンバー

名前型説明
en{ readonly title: "Hitori"; readonly help: "Tap a cell or press Space to shade it. Shaded cells cannot touch; the remaining numbers must be unique in every row and column, and the unshaded cells must stay connected. Arrow keys move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly bad: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly cell: "Row"; readonly column: "column"; readonly shaded: "shaded"; readonly white: "unshaded"; }
ja{ readonly title: "ひとりにしてくれ"; readonly help: "マスを押すかスペースキーで黒くします。黒マスは辺で隣り合えません。白マスの行と列に同じ数字がなく、白マス全体がつながるようにします。矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly bad: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly cell: "行"; readonly column: "列"; readonly shaded: "黒"; readonly white: "白"; }

例

import { HITORI_STRINGS } from "@johnmorrisdotca/kazu/hitori/play";

console.log(Object.keys(HITORI_STRINGS.en));
[
  'title',  'help',
  'undo',   'hint',
  'check',  'restart',
  'won',    'helped',
  'bad',    'good',
  'noHint', 'cell',
  'column', 'shaded',
  'white'
]

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

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

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