awaseRefusalfunction
A refusal: { ok: false }, the English reason and the code.
Import it
import { awaseRefusal } from "@johnmorrisdotca/jarajara/awase";
Definition
function awaseRefusal(code: AwaseCheckCode): Extract<AwaseCheck, { ok: false; }>
Parameters
| Name | Type | Description |
|---|---|---|
code | "givens-not-deal" | "answer-not-moves" | "move-not-allowed" | "tiles-left" | Why the solve is not taken. |
Returns
{ ok: false; reason: string; code: AwaseCheckCode; }
The refusal checkAwase gives.
Examples
import { awaseRefusal } from "@johnmorrisdotca/jarajara/awase";
console.log(awaseRefusal("tiles-left"));{
ok: false,
reason: 'tiles are left on the layout',
code: 'tiles-left'
}What it prints (run when this page was built)