AWASE_CHECK_REASONSconstant
Why checkAwase will not take a solve, as a stable code and the English sentence it says. None of them has a gap
to fill, so a site says each code in its own words and needs nothing more.
| Code | Said when |
|---|---|
givens-not-deal | the tiles are not a deal of that layout |
answer-not-moves | the answer cannot be read as a list of moves |
move-not-allowed | a move breaks the rules (a pair that does not match or is not free, or a shuffle made while a pair was left) |
tiles-left | every move was allowed and the layout is not clear |
Import it
import { AWASE_CHECK_REASONS } from "@johnmorrisdotca/jarajara/awase";
Definition
const AWASE_CHECK_REASONS: { readonly "givens-not-deal": "the givens are not a deal of that layout"; readonly "answer-not-moves": "the answer is not a list of moves"; readonly "move-not-allowed": "a move the rules do not allow"; readonly "tiles-left": "tiles are left on the layout"; } = {
"givens-not-deal": "the givens are not a deal of that layout",
"answer-not-moves": "the answer is not a list of moves",
"move-not-allowed": "a move the rules do not allow",
"tiles-left": "tiles are left on the layout",
} as const
Members
| Name | Type | Description |
|---|---|---|
givens-not-deal | "the givens are not a deal of that layout" | |
answer-not-moves | "the answer is not a list of moves" | |
move-not-allowed | "a move the rules do not allow" | |
tiles-left | "tiles are left on the layout" |
Examples
import { AWASE_CHECK_REASONS } from "@johnmorrisdotca/jarajara/awase";
console.log(AWASE_CHECK_REASONS["tiles-left"]);tiles are left on the layoutWhat it prints (run when this page was built)