本文へ移動

Meikyuu迷宮

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

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

目次

リファレンス · 立体表面の規則と形

SOLID_FIRST定数

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

THE SOLIDS BY HOW THEY ARE MET. A solid is a die or a shape, and the picker of a page keeps them on two rows:

  • SOLID_DICE: the shapes dice are made in, by how many sides the die has (SOLID_DIE_SIDES): the triangular prism (a d3, the long die that rolls on its three sides), the tetrahedron (d4), the cube (d6), the octahedron (d8), the pentagonal trapezohedron (d10), the dodecahedron (d12) and the rhombic dodecahedron (the other d12), the octagonal bipyramid (d16), the icosahedron (d20), the deltoidal icositetrahedron (d24) and the rhombic triacontahedron (d30). A d2 is a coin and a d100 a d10, so neither is a solid of its own.
  • SOLID_SHAPES: the globe, the box, the cross of cubes, the ring, the torus, the star and the heart.

The files the levels are kept in are cut another way, by when a solid came: the first five (SOLID_FIRST: the cube, the globe and the three solids of triangles) are 3d/levels, the seven further dice 3d/levels/dice and the six further shapes 3d/levels/shapes, so that a page loads only the file of the solid it shows.

インポート

import { SOLID_FIRST } from "@johnmorrisdotca/meikyuu/3d";

ほかのエクスポート元: @johnmorrisdotca/meikyuu/3d/levels, @johnmorrisdotca/meikyuu/3d/levels/all

定義

const SOLID_FIRST: readonly ["cube", "sphere", "tetrahedron", "octahedron", "icosahedron"] = ["cube", "sphere", "tetrahedron", "octahedron", "icosahedron"] as const

例

import { SOLID_FIRST } from "@johnmorrisdotca/meikyuu/3d";
console.log(SOLID_FIRST);
[ 'cube', 'sphere', 'tetrahedron', 'octahedron', 'icosahedron' ]

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

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

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