Reference · Cube engine and views
SolveSummarytype
What a record comes to, worked out from its turns.
Import it
import type { SolveSummary } from "@johnmorrisdotca/kyuubu";
Definition
type SolveSummary = {
size: number;
scramble: string;
moves: string;
start: string;
state: string;
solved: boolean;
count: number;
};
Members
| Name | Type | Description |
|---|---|---|
size | number | |
scramble | string | The scramble in notation. |
moves | string | The turns after it in notation. |
start | string | The cube once scrambled. |
state | string | The cube after every turn. |
solved | boolean | Whether it ended solved. |
count | number | The moves that count: every turn but those of the whole cube. |
Examples
import type { SolveSummary } from "@johnmorrisdotca/kyuubu";
import { parseMoves, summarize } from "@johnmorrisdotca/kyuubu";
const value: SolveSummary = summarize({ size: 3, scramble: parseMoves("R", 3)!, moves: parseMoves("R'", 3)! });
console.log(value.solved);trueWhat it prints (run when this page was built)