GuideStep型
リファレンスの説明と例は英語です。見出しと目次は日本語です。
The movement a guide asks for now.
インポート
import type { GuideStep } from "@johnmorrisdotca/kyuubu";
定義
type GuideStep = {
moves: CubeMove[];
whole: CubeMove[];
text: string;
left: string;
rotation: boolean;
index: number;
total: number;
stage?: SolveStage;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
moves | CubeMove[] | What is still to turn of it: the whole movement at first, less any layer or quarter already made. |
whole | CubeMove[] | The movement as asked for. |
text | string | The movement in notation: |
left | string | What is still to turn, in notation: |
rotation | boolean | Whether it turns the whole cube, which no drag on a sticker does. |
index | number | Which movement it is, from 0, in the list or in the method's step. |
total | number | How many movements the list, or the method's step, has. |
stage (省略可) | SolveStage | undefined | The method's stage it belongs to, following the method. |
例
import type { GuideStep } from "@johnmorrisdotca/kyuubu";
import { Guide, solvedCube } from "@johnmorrisdotca/kyuubu";
const value: GuideStep = new Guide(solvedCube(3), 3, { moves: "R U" }).next!;
console.log(value.text);R出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。