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;
};
メンバー
| 名前 | 型 | 説明 |
|---|---|---|
cuboidLabel | string | What a screen reader calls a cuboid: |
faultUnknown | string | A piece of notation that is not notation. |
faultNoSuchLayer | string | A layer the cuboid does not have. |
faultHalfTurnOnly | string | A quarter turn of a layer that only half turns; |
faultWholePuzzle | string | The one layer of a side one cubie deep. |
faultDims | string | A cuboid that is not one the package makes. |
faultLength | string | 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出力(このページを作ったときに実行した結果)
この日本語は、まだ日本語を母語とする方の確認を受けていません。訂正を歓迎します。