本文へ移動

Kyuubuキューブ

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

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

目次

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

SOLVE_ALGORITHMS定数

リファレンスの説明と例は英語です。見出しと目次は日本語です。

The algorithms the method uses, by name. The notation is for white on the bottom.

インポート

import { SOLVE_ALGORITHMS } from "@johnmorrisdotca/kyuubu";

定義

const SOLVE_ALGORITHMS: { readonly cornerIn: "R U R' U'"; readonly edgeRight: "U R U' R' U' F' U F"; readonly edgeLeft: "U' L' U L U F U' F'"; readonly yellowCross: "F R U R' U' F'"; readonly sune: "R U R' U R U2 R'"; readonly cornerCycle: "R' F R' B2 R F' R' B2 R2"; readonly edgeCycle: "R U' R U R U R U' R' U' R2"; } = {
    cornerIn: "R U R' U'",
    edgeRight: "U R U' R' U' F' U F",
    edgeLeft: "U' L' U L U F U' F'",
    yellowCross: "F R U R' U' F'",
    sune: "R U R' U R U2 R'",
    cornerCycle: "R' F R' B2 R F' R' B2 R2",
    edgeCycle: "R U' R U R U R U' R' U' R2",
} as const

メンバー

名前型説明
cornerIn"R U R' U'"
edgeRight"U R U' R' U' F' U F"
edgeLeft"U' L' U L U F U' F'"
yellowCross"F R U R' U' F'"
sune"R U R' U R U2 R'"
cornerCycle"R' F R' B2 R F' R' B2 R2"
edgeCycle"R U' R U R U R U' R' U' R2"

例

import { SOLVE_ALGORITHMS } from "@johnmorrisdotca/kyuubu";

console.log(Object.keys(SOLVE_ALGORITHMS).slice(0, 8));
[
  'cornerIn',
  'edgeRight',
  'edgeLeft',
  'yellowCross',
  'sune',
  'cornerCycle',
  'edgeCycle'
]

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

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

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