Reference · Surface maze rules and geometry
solidCellsOffunction
How many cells a solid has at a size.
Import it
import { solidCellsOf } from "@johnmorrisdotca/meikyuu/3d";
Also exported from: @johnmorrisdotca/meikyuu/3d/levels, @johnmorrisdotca/meikyuu/3d/levels/dice, @johnmorrisdotca/meikyuu/3d/levels/shapes, @johnmorrisdotca/meikyuu/3d/levels/all
Definition
function solidCellsOf(kind: SolidKind, size: SolidSize): number
Parameters
| Name | Type | Description |
|---|---|---|
kind | SolidKind | The native puzzle family or surface shape specified by this signature. |
size | "small" | "medium" | "large" | "huge" | "colossal" | The named level size, or numeric tall width specified by this signature. |
Returns
number
How many cells a solid has at a size.
Examples
import { solidCellsOf } from "@johnmorrisdotca/meikyuu/3d";
console.log(solidCellsOf("cube","small"));96What it prints (run when this page was built)