Reference · Mazes, arrows and mixed boards
ringCountsfunction
How many cells each ring of a circle maze holds: one in the middle, six round it, and a ring doubles its cells when its cells would otherwise be wider than tall.
Import it
import { ringCounts } from "@johnmorrisdotca/meikyuu";
Definition
function ringCounts(rings: number): number[]
Parameters
| Name | Type | Description |
|---|---|---|
rings | number | The positive number of circular grid rings. |
Returns
number[]
How many cells each ring of a circle maze holds: one in the middle, six round it, and a ring doubles its cells when its cells would otherwise be wider than tall.
Examples
import { ringCounts } from "@johnmorrisdotca/meikyuu";
console.log(ringCounts(3));[ 1, 6, 12 ]What it prints (run when this page was built)