Reference · Number-puzzle engines
KAZU_CHECK_REASONSconstant
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.
| Code | Values |
|---|---|
no-kind-at | kind (the puzzle's key), size |
no-check | kind |
givens-not-grid, givens-not-regions, givens-not-cages, givens-not-marks, givens-not-clues | none |
regions-not-sound, answer-not-grid, answer-has-empty-cells, given-changed, mark-not-true, diagonal-repeats | none |
row-repeats, column-repeats, box-repeats, region-repeats | n: the group's number, counted from 1 |
cage-repeats | n: the cage's number, counted from 1 |
cage-sum-wrong | n, sum: what the cage should add to |
clue-sees-wrong | side (top, bottom, left or right), clue, seen |
Import it
import { KAZU_CHECK_REASONS } from "@johnmorrisdotca/kazu";
Definition
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
Members
| Name | Type | Description |
|---|---|---|
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}" |
Examples
import { KAZU_CHECK_REASONS } from "@johnmorrisdotca/kazu";
console.log(KAZU_CHECK_REASONS["row-repeats"]);row {n} repeats a numberWhat it prints (run when this page was built)