本文へ移動

Kyuubuキューブ

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

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

目次

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

toText関数

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

A solve as a few plain lines, to paste in a chat or a note:

3x3
scramble: R U2 F'
solve: F U2 R'
time: 12.34

A line is left out where there is nothing to say. fromText reads it back.

インポート

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

定義

function toText(record: SolveRecord): string

引数

名前型説明
recordSolveRecord

The solve record to summarize or write.

戻り値

string

A solve as a few plain lines, to paste in a chat or a note: 3x3 scramble: R U2 F' solve: F U2 R' time: 12.34 A line is left out where there is nothing to say. fromText reads it back.

例

import { parseMoves, toText } from "@johnmorrisdotca/kyuubu";

const moves = parseMoves("R U2", 3)!;
const record = { size: 3, scramble: parseMoves("R", 3)!, moves: parseMoves("R'", 3)!, ms: 1000, seed: "docs" };
console.log(toText(record));
3x3
scramble: R
solve: R'
time: 1.00
seed: docs

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

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

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