Reference · Cube engine and views
SolveParttype
A part of a step: turns to line something up, or one of the method's algorithms.
Import it
import type { SolvePart } from "@johnmorrisdotca/kyuubu";
Definition
type SolvePart = {
moves: CubeMove[];
algorithm?: SolveAlgorithm;
};
Members
| Name | Type | Description |
|---|---|---|
moves | CubeMove[] | |
algorithm (optional) | "yellowCross" | "cornerIn" | "edgeRight" | "edgeLeft" | "sune" | "cornerCycle" | "edgeCycle" | undefined |
Examples
import type { SolvePart } from "@johnmorrisdotca/kyuubu";
import { movesNotation, parseMoves } from "@johnmorrisdotca/kyuubu";
const value: SolvePart = { moves: parseMoves("R U", 3)! };
console.log(movesNotation(value.moves, 3));R UWhat it prints (run when this page was built)