本文へ移動

Kyuubuキューブ

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

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

目次

リファレンス · 記録の解法

FamousSolve型

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

One famous solve.

インポート

import type { FamousSolve } from "@johnmorrisdotca/kyuubu/famous";

定義

type FamousSolve = {
    id: string;
    size: number;
    timeMs: number;
    solver: string;
    country: string;
    competition: string;
    competitionId: string;
    from: string;
    to: string;
    record: "world record" | "tied world record";
    scramble: string;
    solution: string;
    reconstructedBy?: string;
    source: string;
    checked: string;
};

メンバー

名前型説明
idstring

A short name for it, fixed for good: the solver and the time.

sizenumber

The cube's side.

timeMsnumber

The official time, in milliseconds.

solverstring

Who solved it, as the WCA's results name them.

countrystring

The country they represent.

competitionstring

The competition.

competitionIdstring

The competition's id at worldcubeassociation.org.

fromstring

The competition's first day, as year-month-day. The solve was made on one of its days.

tostring

The competition's last day.

record"world record" | "tied world record"

What it was when it was made.

scramblestring

The scramble, white on top and green in front.

solutionstring

The solve, a line for each stage as its source sets it out.

reconstructedBy (省略可)string | undefined

Who worked the moves out from the film, where the source says.

sourcestring

Where the scramble and the moves were published.

checkedstring

The day the source was last read, as year-month-day.

例

import type { FamousSolve } from "@johnmorrisdotca/kyuubu/famous";
import { FAMOUS_SOLVES } from "@johnmorrisdotca/kyuubu/famous";

const value: FamousSolve = FAMOUS_SOLVES[0]!;
console.log(value.solver);
Teodor Zajder

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

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

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