本文へ移動

Meikyuu迷宮

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

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

目次

リファレンス · 遊べる盤

MEIKYUU_ORIENTATIONS定数

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

WHICH WAY UP A MAZE IS LOOKED AT. A tall maze is made to be played upright on a phone and wants to lie down on a wide screen; a wide one the other way. Turning is presentation only: the maze, its cells and the line drawn through them stay as they were made (the logical orientation), and the board draws them a quarter turn counter-clockwise, so the maze's top is on the left, its left at the foot, and a finger's path over the picture is carried back into the maze before anything is decided. A line stored as its steps (lineToSteps) therefore replays the same on a board turned either way, which is what lets a person start a level on a phone and finish it on a desk.

The turn is a quarter turn counter-clockwise: the logical point (x, y) is shown at (y, -x), a rotation of -90 degrees in SVG's terms.

インポート

import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";

ほかのエクスポート元: @johnmorrisdotca/meikyuu

定義

const MEIKYUU_ORIENTATIONS: readonly ["portrait", "landscape", "auto"] = ["portrait", "landscape", "auto"] as const

例

import { MEIKYUU_ORIENTATIONS } from "@johnmorrisdotca/meikyuu/play";
console.log(MEIKYUU_ORIENTATIONS);
[ 'portrait', 'landscape', 'auto' ]

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

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

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