本文へ移動

Meikyuu迷宮

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

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

目次

リファレンス · 番号付きの問題

MeikyuuMazeLevel型

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

A numbered flat-maze recipe, difficulty measures, cell count and place within its size.

インポート

import type { MeikyuuMazeLevel } from "@johnmorrisdotca/meikyuu/levels";

定義

type MeikyuuMazeLevel = Base & {
    readonly kind: "maze";
    readonly recipe: MazeRecipe;
    readonly cells: number;
    readonly score: number;
    readonly size: MeikyuuSize;
    readonly inSize: number;
};

メンバー

名前型説明
numbernumber

Its place in its own list, from 1.

codestring

The recipe as one short word.

effortnumber

What it measures (see measureMaze, measureArrows, measureMixed).

ratingnumber

The effort as a rating from 1 to 100 on the scale of the maze list.

kind"maze"
recipeMazeRecipe
cellsnumber
scorenumber

How hard it is to play, from 0 to 100 (see difficultyOf): what each size's list is put in order by.

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

The size it belongs to, as sizeOf words its cells.

inSizenumber

Its place among the levels of its size, from 1: the number a person playing that size meets it at.

例

import type { MeikyuuMazeLevel } from "@johnmorrisdotca/meikyuu/levels";
import { levelOf } from "@johnmorrisdotca/meikyuu/levels";

const value: MeikyuuMazeLevel = levelOf("maze",1)!;
console.log(value);
{
  kind: 'maze',
  number: 1,
  code: 'square:3x5:prim:to-goal:1538214105',
  effort: 22,
  rating: 15,
  score: 13,
  cells: 15,
  size: 'small',
  inSize: 1,
  recipe: {
    shape: 'square',
    w: 3,
    h: 5,
    algorithm: 'prim',
    mode: 'to-goal',
    seed: 1538214105
  }
}

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

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

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