Reference · Cube engine and views
MoveListGrouptype
A run of moves under a heading: a scramble, a solution.
Import it
import type { MoveListGroup } from "@johnmorrisdotca/kyuubu";
Definition
type MoveListGroup = {
label: string;
items: readonly (string | MoveListItem)[];
main?: boolean;
};
Members
| Name | Type | Description |
|---|---|---|
label | string | What the run is called, shown above it and said by a screen reader. |
items | readonly (string | MoveListItem)[] | Its moves, as codes or as items. |
main (optional) | boolean | undefined | The run the keys Home and End go to the ends of: the first one so marked, or else the first of all. |
Examples
import type { MoveListGroup } from "@johnmorrisdotca/kyuubu";
const value: MoveListGroup = { label: "Solve", items: ["R", "R'"] };
console.log(value.items);[ 'R', "R'" ]What it prints (run when this page was built)