本文へ移動

Kazu数

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

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

目次

リファレンス · 遊べる数字の盤

SHIKAKU_STRINGS定数

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

Native English and Japanese labels and announcements for Shikaku.

インポート

import { SHIKAKU_STRINGS } from "@johnmorrisdotca/kazu/play";

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

定義

const SHIKAKU_STRINGS: { readonly en: { readonly title: "Shikaku"; readonly help: "Choose two opposite corners to draw a rectangle. Each rectangle must contain one number equal to its area. Cover the whole board. Arrow keys move; Enter chooses a corner; Delete removes a rectangle; Escape cancels."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly cancel: "Cancel"; readonly expand: "Just the board"; readonly close: "Close"; readonly ready: "Choose the first corner."; readonly corner: "Choose the opposite corner."; readonly won: "Every rectangle fits. Solved!"; readonly helped: "Every rectangle fits. Solved with help."; readonly hintWhy: "This rectangle occurs in the only remaining complete partition."; readonly noHint: "No proved hint: undo a conflicting rectangle or continue drawing."; readonly checked: "All drawn rectangles follow the rules. Keep filling the board."; readonly wrong: "Some rectangles need changing: each must hold one number equal to its area."; readonly remove: "Remove selected rectangle"; readonly row: "Row"; readonly column: "column"; readonly clue: "area"; readonly blank: "no clue"; readonly covered: "in a rectangle"; }; readonly ja: { readonly title: "四角に切れ"; readonly help: "向かい合う二つの角を選んで長方形を描きます。各長方形に数字を一つ入れ、その数字と面積を同じにします。盤全体を埋めましょう。矢印キーで移動、Enterで角を選び、Deleteで長方形を消し、Escapeで取り消します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確かめる"; readonly restart: "やり直す"; readonly cancel: "取り消す"; readonly expand: "盤だけ"; readonly close: "閉じる"; readonly ready: "最初の角を選びます。"; readonly corner: "向かいの角を選びます。"; readonly won: "全部の長方形が合いました。完成!"; readonly helped: "ヒントを使って完成!"; readonly hintWhy: "残った唯一の答えに、この長方形があります。"; readonly noHint: "確かなヒントがありません。合わない長方形を戻すか、続けて描きましょう。"; readonly checked: "描いた長方形はルールに合っています。残りも埋めましょう。"; readonly wrong: "直す長方形があります。数字を一つ含み、その数字と面積を同じにします。"; readonly remove: "選んだ長方形を消す"; readonly row: "行"; readonly column: "列"; readonly clue: "面積"; readonly blank: "数字なし"; readonly covered: "長方形の中"; }; } = {
    en: { title: "Shikaku", help: "Choose two opposite corners to draw a rectangle. Each rectangle must contain one number equal to its area. Cover the whole board. Arrow keys move; Enter chooses a corner; Delete removes a rectangle; Escape cancels.", undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", cancel: "Cancel", expand: "Just the board", close: "Close", ready: "Choose the first corner.", corner: "Choose the opposite corner.", won: "Every rectangle fits. Solved!", helped: "Every rectangle fits. Solved with help.", hintWhy: "This rectangle occurs in the only remaining complete partition.", noHint: "No proved hint: undo a conflicting rectangle or continue drawing.", checked: "All drawn rectangles follow the rules. Keep filling the board.", wrong: "Some rectangles need changing: each must hold one number equal to its area.", remove: "Remove selected rectangle", row: "Row", column: "column", clue: "area", blank: "no clue", covered: "in a rectangle" },
    ja: { title: "四角に切れ", help: "向かい合う二つの角を選んで長方形を描きます。各長方形に数字を一つ入れ、その数字と面積を同じにします。盤全体を埋めましょう。矢印キーで移動、Enterで角を選び、Deleteで長方形を消し、Escapeで取り消します。", undo: "戻す", hint: "ヒント", check: "確かめる", restart: "やり直す", cancel: "取り消す", expand: "盤だけ", close: "閉じる", ready: "最初の角を選びます。", corner: "向かいの角を選びます。", won: "全部の長方形が合いました。完成!", helped: "ヒントを使って完成!", hintWhy: "残った唯一の答えに、この長方形があります。", noHint: "確かなヒントがありません。合わない長方形を戻すか、続けて描きましょう。", checked: "描いた長方形はルールに合っています。残りも埋めましょう。", wrong: "直す長方形があります。数字を一つ含み、その数字と面積を同じにします。", remove: "選んだ長方形を消す", row: "行", column: "列", clue: "面積", blank: "数字なし", covered: "長方形の中" }
} as const

メンバー

名前型説明
en{ readonly title: "Shikaku"; readonly help: "Choose two opposite corners to draw a rectangle. Each rectangle must contain one number equal to its area. Cover the whole board. Arrow keys move; Enter chooses a corner; Delete removes a rectangle; Escape cancels."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly cancel: "Cancel"; readonly expand: "Just the board"; readonly close: "Close"; readonly ready: "Choose the first corner."; readonly corner: "Choose the opposite corner."; readonly won: "Every rectangle fits. Solved!"; readonly helped: "Every rectangle fits. Solved with help."; readonly hintWhy: "This rectangle occurs in the only remaining complete partition."; readonly noHint: "No proved hint: undo a conflicting rectangle or continue drawing."; readonly checked: "All drawn rectangles follow the rules. Keep filling the board."; readonly wrong: "Some rectangles need changing: each must hold one number equal to its area."; readonly remove: "Remove selected rectangle"; readonly row: "Row"; readonly column: "column"; readonly clue: "area"; readonly blank: "no clue"; readonly covered: "in a rectangle"; }
ja{ readonly title: "四角に切れ"; readonly help: "向かい合う二つの角を選んで長方形を描きます。各長方形に数字を一つ入れ、その数字と面積を同じにします。盤全体を埋めましょう。矢印キーで移動、Enterで角を選び、Deleteで長方形を消し、Escapeで取り消します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確かめる"; readonly restart: "やり直す"; readonly cancel: "取り消す"; readonly expand: "盤だけ"; readonly close: "閉じる"; readonly ready: "最初の角を選びます。"; readonly corner: "向かいの角を選びます。"; readonly won: "全部の長方形が合いました。完成!"; readonly helped: "ヒントを使って完成!"; readonly hintWhy: "残った唯一の答えに、この長方形があります。"; readonly noHint: "確かなヒントがありません。合わない長方形を戻すか、続けて描きましょう。"; readonly checked: "描いた長方形はルールに合っています。残りも埋めましょう。"; readonly wrong: "直す長方形があります。数字を一つ含み、その数字と面積を同じにします。"; readonly remove: "選んだ長方形を消す"; readonly row: "行"; readonly column: "列"; readonly clue: "面積"; readonly blank: "数字なし"; readonly covered: "長方形の中"; }

例

import { SHIKAKU_STRINGS } from "@johnmorrisdotca/kazu/play";

console.log(Object.keys(SHIKAKU_STRINGS.en));
[
  'title',   'help',    'undo',
  'hint',    'check',   'restart',
  'cancel',  'expand',  'close',
  'ready',   'corner',  'won',
  'helped',  'hintWhy', 'noHint',
  'checked', 'wrong',   'remove',
  'row',     'column',  'clue',
  'blank',   'covered'
]

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

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

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