Skip to the content

Kyuubuキューブ

Turn CSS 3D cubes by touch, keys or notation, reproduce a scramble from a seed, and follow a solve one named step at a time.

Kyuubu (キューブ) is the Japanese spelling of cube. About the name

Contents

Reference · Cube engine and views

paceSecondsfunction

Seconds for a pace given as a number or a name; the default for anything else.

Import it

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

Definition

function paceSeconds(pace: number | ScramblePace | undefined): number

Parameters

NameTypeDescription
pacenumber | "fast" | "normal" | "slow" | undefined

A pace name or seconds per turn.

Returns

number

Seconds for a pace given as a number or a name; the default for anything else.

Examples

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

console.log(paceSeconds("slow"));
4

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/kyuubu 1.14.1.