Reference · Surface maze rules and geometry
solidCellsfunction
How many cells a solid cut n ways has.
Import it
import { solidCells } from "@johnmorrisdotca/meikyuu/3d";
Definition
function solidCells(kind: SolidKind, n: number): number
Parameters
| Name | Type | Description |
|---|---|---|
kind | SolidKind | The native puzzle family or surface shape specified by this signature. |
n | number | The level number, random bound or surface subdivision specified by the signature. |
Returns
number
How many cells a solid cut n ways has.
Examples
import { solidCells } from "@johnmorrisdotca/meikyuu/3d";
console.log(solidCells("cube",2));24What it prints (run when this page was built)