faultSaysfunction
The line that says why a piece of notation is not a move on a cuboid.
Import it
import { faultSays } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
function faultSays(fault: CuboidFault, token: string, language?: KyuubuLanguage): string
Parameters
| Name | Type | Description |
|---|---|---|
fault | CuboidFault | The reason the cuboid notation was refused. |
token | string | The notation token being read or described. |
language (optional) | KyuubuLanguage | English or Japanese for the displayed words. |
Returns
string
The line that says why a piece of notation is not a move on a cuboid.
Examples
import { faultSays } from "@johnmorrisdotca/kyuubu/cuboid";
console.log(faultSays("half-turn-only", "U", "en"));“U” would be a quarter turn, and that layer is not square, so it only makes half turns. Write “U2”.What it prints (run when this page was built)