本文へ移動

Meikyuu迷宮

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

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

目次

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

MeikyuuSolidLevel型

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

A LEVEL OF A SOLID, AND HOW A FILE OF ROWS BECOMES THE LISTS: the shape every level entry of the solids shares (3d/levels, 3d/levels/dice, 3d/levels/shapes, 3d/levels/all), so that each file of recipes is turned into levels by the same code, and a page that shows one solid loads the file of that solid and no other.

インポート

import type { MeikyuuSolidLevel } from "@johnmorrisdotca/meikyuu/3d/levels";

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

定義

type MeikyuuSolidLevel = {
    readonly kind: SolidKind;
    readonly size: SolidSize;
    readonly number: number;
    readonly code: string;
    readonly recipe: SolidRecipe;
    readonly cells: number;
    readonly effort: number;
    readonly rating: number;
    readonly score: number;
};

メンバー

名前型説明
kindSolidKind
size"small" | "medium" | "large" | "huge" | "colossal"
numbernumber

Its place in its list, from 1.

codestring
recipeSolidRecipe
cellsnumber
effortnumber

What it measures (see measureMaze).

ratingnumber

The effort as a rating from 1 to 100, on the scale of the flat lists.

scorenumber

How hard it is to play, from 0 to 100 (see solidDifficultyOf), counting how much of the solid the answer covers.

例

import type { MeikyuuSolidLevel } from "@johnmorrisdotca/meikyuu/3d/levels";
import { solidLevelOf } from "@johnmorrisdotca/meikyuu/3d/levels";

const value: MeikyuuSolidLevel = solidLevelOf("cube","small",1)!;
console.log(value);
{
  kind: 'cube',
  size: 'small',
  number: 1,
  code: 'cube:4:prim:3163583831',
  recipe: { kind: 'cube', n: 4, algorithm: 'prim', seed: 3163583831 },
  cells: 96,
  effort: 67,
  rating: 32,
  score: 24
}

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

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

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