本文へ移動

Meikyuu迷宮

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

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

目次

リファレンス · 遊べる盤

MeikyuuEventDetail型

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

What every event tells of the board.

インポート

import type { MeikyuuEventDetail } from "@johnmorrisdotca/meikyuu/play";

定義

type MeikyuuEventDetail = {
    kind: MeikyuuKind;
    level: number | null;
    moves: number;
    cells: number;
    keys: number;
    keysOf: number;
    hearts: number | null;
    arrowsLeft: number | null;
    solved: boolean;
    orientation: "portrait" | "landscape" | null;
    turned: boolean;
    stones: number;
    stonesLeft: number | null;
};

メンバー

名前型説明
kind"maze" | "arrows" | "mixed"
levelnumber | null

The level's number in its list, when it is one of the package's.

movesnumber

Strokes drawn (mazes) or arrows tapped (arrow puzzles).

cellsnumber

Cells in the line now.

keysnumber
keysOfnumber
heartsnumber | null

Hearts left, for arrow puzzles.

arrowsLeftnumber | null
solvedboolean
orientation"portrait" | "landscape" | null

How a maze is shown now (portrait when it is taller than wide as shown), or null for arrows.

turnedboolean

Whether the maze is shown turned from how it was made.

stonesnumber

Stones laid now (0 for a board with none).

stonesLeftnumber | null

Stones that can still be laid: null for no limit, 0 for a board with no stones.

例

import type { MeikyuuEventDetail } from "@johnmorrisdotca/meikyuu/play";
import { arrowsLeft, stonesLeft } from "@johnmorrisdotca/meikyuu";

const value: MeikyuuEventDetail = {kind:"maze",level:null,moves:0,cells:0,keys:0,keysOf:0,hearts:null,arrowsLeft:null,solved:false,orientation:"landscape",turned:false,stones:0,stonesLeft:null};
console.log(value);
{
  kind: 'maze',
  level: null,
  moves: 0,
  cells: 0,
  keys: 0,
  keysOf: 0,
  hearts: null,
  arrowsLeft: null,
  solved: false,
  orientation: 'landscape',
  turned: false,
  stones: 0,
  stonesLeft: null
}

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

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

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