本文へ移動

Kyuubuキューブ

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

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

目次

リファレンス · 直方体のエンジン

CuboidWords型

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

THE CUBOID'S OWN WORDS, in English and Japanese: what a screen reader calls it and what is said when a move cannot be made. The player's controls say what the cube's do (WORDS in words.ts). {braces} are filled in when a line is shown; a table in another language keeps them.

インポート

import type { CuboidWords } from "@johnmorrisdotca/kyuubu/cuboid";

定義

type CuboidWords = {
    cuboidLabel: string;
    faultUnknown: string;
    faultNoSuchLayer: string;
    faultHalfTurnOnly: string;
    faultWholePuzzle: string;
    faultDims: string;
    faultLength: string;
};

メンバー

名前型説明
cuboidLabelstring

What a screen reader calls a cuboid: {dims} is 2×3×3.

faultUnknownstring

A piece of notation that is not notation. {token} is the piece.

faultNoSuchLayerstring

A layer the cuboid does not have.

faultHalfTurnOnlystring

A quarter turn of a layer that only half turns; {half} is the half turn to write instead.

faultWholePuzzlestring

The one layer of a side one cubie deep.

faultDimsstring

A cuboid that is not one the package makes.

faultLengthstring

A solve too long to play.

例

import type { CuboidWords } from "@johnmorrisdotca/kyuubu/cuboid";
import { CUBOID_WORDS } from "@johnmorrisdotca/kyuubu/cuboid";

const value: CuboidWords = CUBOID_WORDS.en;
console.log(value.cuboidLabel);
A {dims} cuboid

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

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

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