本文へ移動

Meikyuu迷宮

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

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

目次

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

MeikyuuMixedLevel型

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

A numbered mixed-puzzle recipe and its native difficulty metadata.

インポート

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

定義

type MeikyuuMixedLevel = Base & {
    readonly kind: "mixed";
    readonly recipe: MixedRecipe;
};

メンバー

名前型説明
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"mixed"
recipeMixedRecipe

例

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

const value: MeikyuuMixedLevel = levelOf("mixed",1)!;
console.log(value);
{
  kind: 'mixed',
  number: 1,
  code: 'cross:7:4:9675:1|square:5x5:kruskal:to-goal:126',
  effort: 41,
  rating: 10,
  recipe: {
    arrows: { shape: 'cross', w: 7, h: 7, longest: 4, seed: 9675, locks: 1 },
    maze: {
      shape: 'square',
      w: 5,
      h: 5,
      algorithm: 'kruskal',
      mode: 'to-goal',
      seed: 126
    }
  }
}

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

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

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