本文へ移動

Meikyuu迷宮

シード付きの迷路と矢印パズルを作り、番号付きの問題を進め、平面や立体表面で遊べます。

「迷宮」は迷路のように入り組んだ場所を表す言葉です。 名前について(英語)

目次

リファレンス · 立体の形ごとの問題

solidLevelOf関数

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

The one-based surface level, or null when this entry has no such kind, size or number.

インポート

import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/shapes";

定義

function solidLevelOf(kind: SolidKind, size: SolidSize, n: number): MeikyuuSolidLevel | null

引数

名前型説明
kindSolidKind

The native surface kind.

size"small" | "medium" | "large" | "huge" | "colossal"

The small, medium, large, huge or colossal collection.

nnumber

The one-based level number.

戻り値

MeikyuuSolidLevel | null

The one-based surface level, or null when this entry has no such kind, size or number.

例

import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels/shapes";
console.log(solidLevelOf("box","small",1)?.code);
box:2:hunt:507995874

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

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

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