本文へ移動

Kazu数

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

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

目次

リファレンス · 数字パズルのエンジン

KAZU_CHECK_REASONS定数

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

Why checkKazu will not take an answer, as a stable code and the English clause it says: {name} is a gap the check's values fill. The clause is what reason has always said, word for word; a site that speaks another language says the code in its own words and puts the values in the gaps.

CodeValues
no-kind-atkind (the puzzle's key), size
no-checkkind
givens-not-grid, givens-not-regions, givens-not-cages, givens-not-marks, givens-not-cluesnone
regions-not-sound, answer-not-grid, answer-has-empty-cells, given-changed, mark-not-true, diagonal-repeatsnone
row-repeats, column-repeats, box-repeats, region-repeatsn: the group's number, counted from 1
cage-repeatsn: the cage's number, counted from 1
cage-sum-wrongn, sum: what the cage should add to
clue-sees-wrongside (top, bottom, left or right), clue, seen

インポート

import { KAZU_CHECK_REASONS } from "@johnmorrisdotca/kazu";

定義

const KAZU_CHECK_REASONS: { readonly "no-kind-at": "no {kind} at {size}"; readonly "no-check": "no check for {kind}"; readonly "givens-not-grid": "the givens are not a grid"; readonly "givens-not-regions": "the givens are not a grid with regions"; readonly "givens-not-cages": "the givens are not a grid with cages"; readonly "givens-not-marks": "the givens are not a grid with marks"; readonly "givens-not-clues": "the givens are not a square with clues"; readonly "regions-not-sound": "the regions do not divide the grid"; readonly "answer-not-grid": "the answer is not a grid"; readonly "answer-has-empty-cells": "the answer has empty cells"; readonly "given-changed": "a given was changed"; readonly "row-repeats": "row {n} repeats a number"; readonly "column-repeats": "column {n} repeats a number"; readonly "box-repeats": "box {n} repeats a number"; readonly "region-repeats": "region {n} repeats a number"; readonly "diagonal-repeats": "a diagonal repeats a number"; readonly "cage-repeats": "cage {n} repeats a number"; readonly "cage-sum-wrong": "cage {n} does not add to {sum}"; readonly "mark-not-true": "a mark is not true"; readonly "clue-sees-wrong": "the {side} clue {clue} sees {seen}"; } = {
    "no-kind-at": "no {kind} at {size}",
    "no-check": "no check for {kind}",
    "givens-not-grid": "the givens are not a grid",
    "givens-not-regions": "the givens are not a grid with regions",
    "givens-not-cages": "the givens are not a grid with cages",
    "givens-not-marks": "the givens are not a grid with marks",
    "givens-not-clues": "the givens are not a square with clues",
    "regions-not-sound": "the regions do not divide the grid",
    "answer-not-grid": "the answer is not a grid",
    "answer-has-empty-cells": "the answer has empty cells",
    "given-changed": "a given was changed",
    "row-repeats": "row {n} repeats a number",
    "column-repeats": "column {n} repeats a number",
    "box-repeats": "box {n} repeats a number",
    "region-repeats": "region {n} repeats a number",
    "diagonal-repeats": "a diagonal repeats a number",
    "cage-repeats": "cage {n} repeats a number",
    "cage-sum-wrong": "cage {n} does not add to {sum}",
    "mark-not-true": "a mark is not true",
    "clue-sees-wrong": "the {side} clue {clue} sees {seen}",
} as const

メンバー

名前型説明
no-kind-at"no {kind} at {size}"
no-check"no check for {kind}"
givens-not-grid"the givens are not a grid"
givens-not-regions"the givens are not a grid with regions"
givens-not-cages"the givens are not a grid with cages"
givens-not-marks"the givens are not a grid with marks"
givens-not-clues"the givens are not a square with clues"
regions-not-sound"the regions do not divide the grid"
answer-not-grid"the answer is not a grid"
answer-has-empty-cells"the answer has empty cells"
given-changed"a given was changed"
row-repeats"row {n} repeats a number"
column-repeats"column {n} repeats a number"
box-repeats"box {n} repeats a number"
region-repeats"region {n} repeats a number"
diagonal-repeats"a diagonal repeats a number"
cage-repeats"cage {n} repeats a number"
cage-sum-wrong"cage {n} does not add to {sum}"
mark-not-true"a mark is not true"
clue-sees-wrong"the {side} clue {clue} sees {seen}"

例

import { KAZU_CHECK_REASONS } from "@johnmorrisdotca/kazu";

console.log(KAZU_CHECK_REASONS["row-repeats"]);
row {n} repeats a number

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

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

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