本文へ移動

Kyuubuキューブ

CSS 3Dのキューブをタッチ、キー、回転記号で回します。シードでスクランブルを再現し、名前付きの手順で解き方を追えます。

「キューブ」は、英語のcubeを表す日本語の表記です。 名前について(英語)

目次

リファレンス · キューブのエンジンと表示

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;
};

メンバー

名前型説明
movesCubeMove[]

What is still to turn of it: the whole movement at first, less any layer or quarter already made.

wholeCubeMove[]

The movement as asked for.

textstring

The movement in notation: R', Rw, x.

leftstring

What is still to turn, in notation: 2R once the R of an Rw is made.

rotationboolean

Whether it turns the whole cube, which no drag on a sticker does.

indexnumber

Which movement it is, from 0, in the list or in the method's step.

totalnumber

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

出力(このページを作ったときに実行した結果)

ソースを見るGitHub で編集@johnmorrisdotca/kyuubu 1.14.1 のソースから作成しました。

この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。