CuboidReplaySourcetype
What a cuboid replay is made from.
Import it
import type { CuboidReplaySource } from "@johnmorrisdotca/kyuubu/cuboid";
Definition
type CuboidReplaySource = {
dims: CuboidDims;
scramble: string;
solution: string;
timeMs?: number;
stepMs?: readonly number[];
};
Members
| Name | Type | Description |
|---|---|---|
dims | CuboidDims | The puzzle's width, height and depth. |
scramble | string | The scramble, as written. |
solution | string | The solve, as written. |
timeMs (optional) | number | undefined | How long the solve took, in milliseconds, when that is known. |
stepMs (optional) | readonly number[] | undefined | How long each step took, in milliseconds, when that is known; one for every step. |
Examples
import type { CuboidReplaySource } from "@johnmorrisdotca/kyuubu/cuboid";
const value: CuboidReplaySource = { dims: [2, 3, 3], scramble: "R", solution: "R'", timeMs: 1000 };
console.log(value.dims);[ 2, 3, 3 ]What it prints (run when this page was built)