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 · Masyu player

MASYU_STRINGSconstant

Native English and Japanese labels and announcements for Masyu.

Import it

import { MASYU_STRINGS } from "@johnmorrisdotca/kazu/masyu/play";

Definition

const MASYU_STRINGS: { readonly en: { readonly title: "Masyu"; readonly help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "The loop is still open. Keep going."; readonly bad: "Check the marked line ends and pearls."; readonly pearl: readonly ["empty", "white pearl", "black pearl"]; }; readonly ja: { readonly title: "ましゅ"; readonly help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ閉じていません。続けましょう。"; readonly bad: "線の端や真珠の周りを確認してください。"; readonly pearl: readonly ["なし", "白真珠", "黒真珠"]; }; } = {
    en: { title: "Masyu", help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side.", undo: "Undo", hint: "Hint", check: "Check", restart: "Restart", won: "Solved!", helped: "Solved with help.", good: "The loop is still open. Keep going.", bad: "Check the marked line ends and pearls.", pearl: ["empty", "white pearl", "black pearl"] },
    ja: { title: "ましゅ", help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。", undo: "戻す", hint: "ヒント", check: "確認", restart: "やり直す", won: "完成!", helped: "ヒントを使って完成。", good: "輪はまだ閉じていません。続けましょう。", bad: "線の端や真珠の周りを確認してください。", pearl: ["なし", "白真珠", "黒真珠"] },
} as const

Members

NameTypeDescription
en{ readonly title: "Masyu"; readonly help: "Draw one loop through every pearl. White pearls go straight and turn at a neighboring cell; black pearls turn and go straight through the neighboring cell on each side."; readonly undo: "Undo"; readonly hint: "Hint"; readonly check: "Check"; readonly restart: "Restart"; readonly won: "Solved!"; readonly helped: "Solved with help."; readonly good: "The loop is still open. Keep going."; readonly bad: "Check the marked line ends and pearls."; readonly pearl: readonly ["empty", "white pearl", "black pearl"]; }
ja{ readonly title: "ましゅ"; readonly help: "すべての真珠を通る一つの輪を描きます。白真珠では直進して隣のマスで曲がり、黒真珠では曲がって両隣のマスで直進します。"; readonly undo: "戻す"; readonly hint: "ヒント"; readonly check: "確認"; readonly restart: "やり直す"; readonly won: "完成!"; readonly helped: "ヒントを使って完成。"; readonly good: "輪はまだ閉じていません。続けましょう。"; readonly bad: "線の端や真珠の周りを確認してください。"; readonly pearl: readonly ["なし", "白真珠", "黒真珠"]; }

Examples

import { MASYU_STRINGS } from "@johnmorrisdotca/kazu/masyu/play";

console.log(Object.keys(MASYU_STRINGS.en));
[
  'title', 'help',
  'undo',  'hint',
  'check', 'restart',
  'won',   'helped',
  'good',  'bad',
  'pearl'
]

What it prints (run when this page was built)

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