AWASE_CHECK_REASONS定数
リファレンスの説明と例は英語です。見出しと目次は日本語です。
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 { AWASE_CHECK_REASONS } from "@johnmorrisdotca/jarajara/awase";
定義
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
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
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" |
例
import { AWASE_CHECK_REASONS } from "@johnmorrisdotca/jarajara/awase";
console.log(AWASE_CHECK_REASONS["tiles-left"]);tiles are left on the layout出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。