Reference · Mazes, arrows and mixed boards
zonesAcrossfunction
How many zones along each axis a map of cells is cut into: a flat map by 2, 3 or 4, a solid by 2 or 3.
Import it
import { zonesAcross } from "@johnmorrisdotca/meikyuu";
Definition
function zonesAcross(cells: number, dimensions: number): number
Parameters
| Name | Type | Description |
|---|---|---|
cells | number | A cell-index path or total count specified by this signature. |
dimensions | number | The number of coordinate dimensions. |
Returns
number
How many zones along each axis a map of cells is cut into: a flat map by 2, 3 or 4, a solid by 2 or 3.
Examples
import { zonesAcross } from "@johnmorrisdotca/meikyuu";
console.log(zonesAcross(25,2));2What it prints (run when this page was built)