Skip to the content

Kazu数

Generate checked Sudoku and logic puzzles, read native rules and hints, and draw or embed playable boards.

Kazu is the Japanese word 数 for number. About the name

Contents

Reference · Hitori player

HITORI_STRINGSconstant

Native English and Japanese labels and announcements for Hitori.

Import it

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

Definition

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

Members

NameTypeDescription
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: "白"; }

Examples

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'
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kazu 2.1.0.