CuboidReadingtype
What reading one piece of notation gives: the move, or why it is not one.
Import it
import type { CuboidReading } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
type CuboidReading = {
move: CuboidMove;
} | {
fault: CuboidFault;
};
Examples
import type { CuboidReading } from "@johnmorrisdotca/kyuubu/cuboid";
import { readCuboidMove } from "@johnmorrisdotca/kyuubu/cuboid";
const value: CuboidReading = readCuboidMove("U", [2, 3, 3]);
console.log(value);{ fault: 'half-turn-only' }What it prints (run when this page was built)