本文へ移動

Kazu数

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

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

目次

リファレンス · ぬりかべを遊ぶ

NURIKABE_STRINGS定数

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

Native English and Japanese labels and announcements for Nurikabe.

インポート

import { NURIKABE_STRINGS } from "@johnmorrisdotca/kazu/nurikabe/play";

定義

const NURIKABE_STRINGS: { readonly en: { readonly title: "Nurikabe"; readonly help: "Shade cells to build one connected wall. Black cells cannot form a 2×2 square. Each remaining white region contains one number and has that exact area. Tap or press Space to shade; arrows move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly wrong: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly row: "Row"; readonly column: "column"; readonly sea: "sea"; readonly white: "island"; }; readonly ja: { readonly title: "ぬりかべ"; readonly help: "黒マスをつなげて一つの壁にします。黒マスで2×2の四角形を作れません。白い島には数字が一つだけあり、島の面積はその数字と同じです。マスを押すかスペースで黒くし、矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly wrong: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly row: "行"; readonly column: "列"; readonly sea: "海"; readonly white: "島"; }; } = {
    en: { title: "Nurikabe", help: "Shade cells to build one connected wall. Black cells cannot form a 2×2 square. Each remaining white region contains one number and has that exact area. Tap or press Space to shade; arrows move.", undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.", wrong: "Some rules are broken.", good: "No rule errors yet. Keep going.", noHint: "No proved hint is available.", row: "Row", column: "column", sea: "sea", white: "island" },
    ja: { title: "ぬりかべ", help: "黒マスをつなげて一つの壁にします。黒マスで2×2の四角形を作れません。白い島には数字が一つだけあり、島の面積はその数字と同じです。マスを押すかスペースで黒くし、矢印キーで移動します。", undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。", wrong: "ルールに合わないところがあります。", good: "今のところルール違反はありません。", noHint: "確かなヒントはありません。", row: "行", column: "列", sea: "海", white: "島" },
} as const

メンバー

名前型説明
en{ readonly title: "Nurikabe"; readonly help: "Shade cells to build one connected wall. Black cells cannot form a 2×2 square. Each remaining white region contains one number and has that exact area. Tap or press Space to shade; arrows move."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly wrong: "Some rules are broken."; readonly good: "No rule errors yet. Keep going."; readonly noHint: "No proved hint is available."; readonly row: "Row"; readonly column: "column"; readonly sea: "sea"; readonly white: "island"; }
ja{ readonly title: "ぬりかべ"; readonly help: "黒マスをつなげて一つの壁にします。黒マスで2×2の四角形を作れません。白い島には数字が一つだけあり、島の面積はその数字と同じです。マスを押すかスペースで黒くし、矢印キーで移動します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly wrong: "ルールに合わないところがあります。"; readonly good: "今のところルール違反はありません。"; readonly noHint: "確かなヒントはありません。"; readonly row: "行"; readonly column: "列"; readonly sea: "海"; readonly white: "島"; }

例

import { NURIKABE_STRINGS } from "@johnmorrisdotca/kazu/nurikabe/play";

console.log(Object.keys(NURIKABE_STRINGS.en));
[
  'title',  'help',
  'undo',   'hint',
  'check',  'restart',
  'won',    'helped',
  'wrong',  'good',
  'noHint', 'row',
  'column', 'sea',
  'white'
]

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

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

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