Reference · Rules, tiles and records
KUMIMOJI_CHECK_REASONSconstant
Why checkKumimoji will not take a grid, 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-hand | size: the hand that has no game |
not-a-word | word: the first word that is not in the word list |
givens-not-bag, wild-count-wrong, bag-exceeds-set, answer-not-grid, grid-not-the-bag, tiles-apart, grid-not-finished | none |
Import it
import { KUMIMOJI_CHECK_REASONS } from "@johnmorrisdotca/kumimoji";
Definition
const KUMIMOJI_CHECK_REASONS: { readonly "no-hand": "no Kumimoji with a hand of {size}"; readonly "givens-not-bag": "the givens are not a bag of tiles"; readonly "wild-count-wrong": "the bag has the wrong number of wild tiles"; readonly "bag-exceeds-set": "the bag exceeds the tile set"; readonly "answer-not-grid": "the answer is not a grid"; readonly "grid-not-the-bag": "the grid does not use exactly the tiles of the bag"; readonly "tiles-apart": "the tiles are not all joined"; readonly "not-a-word": "{word} is not in the word list"; readonly "grid-not-finished": "the grid is not finished"; } = {
"no-hand": "no Kumimoji with a hand of {size}",
"givens-not-bag": "the givens are not a bag of tiles",
"wild-count-wrong": "the bag has the wrong number of wild tiles",
"bag-exceeds-set": "the bag exceeds the tile set",
"answer-not-grid": "the answer is not a grid",
"grid-not-the-bag": "the grid does not use exactly the tiles of the bag",
"tiles-apart": "the tiles are not all joined",
"not-a-word": "{word} is not in the word list",
"grid-not-finished": "the grid is not finished",
} as const
Members
| Name | Type | Description |
|---|---|---|
no-hand | "no Kumimoji with a hand of {size}" | |
givens-not-bag | "the givens are not a bag of tiles" | |
wild-count-wrong | "the bag has the wrong number of wild tiles" | |
bag-exceeds-set | "the bag exceeds the tile set" | |
answer-not-grid | "the answer is not a grid" | |
grid-not-the-bag | "the grid does not use exactly the tiles of the bag" | |
tiles-apart | "the tiles are not all joined" | |
not-a-word | "{word} is not in the word list" | |
grid-not-finished | "the grid is not finished" |
Examples
import { KUMIMOJI_CHECK_REASONS } from "@johnmorrisdotca/kumimoji";
console.log(KUMIMOJI_CHECK_REASONS["not-a-word"]);{word} is not in the word listWhat it prints (run when this page was built)