Reference · Numbered surface levels
MeikyuuSolidLeveltype
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 it
import type { MeikyuuSolidLevel } from "@johnmorrisdotca/meikyuu/3d/levels";
Also exported from: @johnmorrisdotca/meikyuu/3d/levels/dice, @johnmorrisdotca/meikyuu/3d/levels/shapes, @johnmorrisdotca/meikyuu/3d/levels/all
Definition
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;
};
Members
| Name | Type | Description |
|---|---|---|
kind | SolidKind | |
size | "small" | "medium" | "large" | "huge" | "colossal" | |
number | number | Its place in its list, from 1. |
code | string | |
recipe | SolidRecipe | |
cells | number | |
effort | number | What it measures (see |
rating | number | The effort as a rating from 1 to 100, on the scale of the flat lists. |
score | number | How hard it is to play, from 0 to 100 (see |
Examples
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
}What it prints (run when this page was built)