本文へ移動

Kazu数

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

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

目次

リファレンス · ヤジリンを遊ぶ

YAJILIN_STRINGS定数

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

Native English and Japanese labels and announcements for Yajilin.

インポート

import { YAJILIN_STRINGS } from "@johnmorrisdotca/kazu/yajilin/play";

定義

const YAJILIN_STRINGS: { readonly en: { readonly title: "Yajilin"; readonly help: "Shade the number of cells each arrow points to. Shaded cells cannot touch. Every other empty cell is part of one loop."; readonly line: "Line"; readonly shade: "Shade"; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "Keep going; the loop is not complete yet."; readonly bad: "Check the marked cells, arrows, and line."; readonly cell: "cell"; }; readonly ja: { readonly title: "やじりん"; readonly help: "矢印の先にある黒マスの数を合わせます。黒マスは辺で隣り合えません。残りの空きマスを一つの輪にします。"; readonly line: "線"; readonly shade: "黒マス"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ完成していません。続けましょう。"; readonly bad: "印のついたマス、矢印、線を確認してください。"; readonly cell: "マス"; }; } = {
    en: { title: "Yajilin", help: "Shade the number of cells each arrow points to. Shaded cells cannot touch. Every other empty cell is part of one loop.", line: "Line", shade: "Shade", undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.", good: "Keep going; the loop is not complete yet.", bad: "Check the marked cells, arrows, and line.", cell: "cell" },
    ja: { title: "やじりん", help: "矢印の先にある黒マスの数を合わせます。黒マスは辺で隣り合えません。残りの空きマスを一つの輪にします。", line: "線", shade: "黒マス", undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。", good: "輪はまだ完成していません。続けましょう。", bad: "印のついたマス、矢印、線を確認してください。", cell: "マス" },
} as const

メンバー

名前型説明
en{ readonly title: "Yajilin"; readonly help: "Shade the number of cells each arrow points to. Shaded cells cannot touch. Every other empty cell is part of one loop."; readonly line: "Line"; readonly shade: "Shade"; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "Keep going; the loop is not complete yet."; readonly bad: "Check the marked cells, arrows, and line."; readonly cell: "cell"; }
ja{ readonly title: "やじりん"; readonly help: "矢印の先にある黒マスの数を合わせます。黒マスは辺で隣り合えません。残りの空きマスを一つの輪にします。"; readonly line: "線"; readonly shade: "黒マス"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ完成していません。続けましょう。"; readonly bad: "印のついたマス、矢印、線を確認してください。"; readonly cell: "マス"; }

例

import { YAJILIN_STRINGS } from "@johnmorrisdotca/kazu/yajilin/play";

console.log(Object.keys(YAJILIN_STRINGS.en));
[
  'title', 'help',
  'line',  'shade',
  'undo',  'hint',
  'check', 'restart',
  'won',   'helped',
  'good',  'bad',
  'cell'
]

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

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

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