Reference · Mazes, arrows and mixed boards
circleGridfunction
A circle maze: rings rings round a middle cell, cells running round each ring and out between the rings.
Import it
import { circleGrid } from "@johnmorrisdotca/meikyuu";
Definition
function circleGrid(rings: number): Grid
Parameters
| Name | Type | Description |
|---|---|---|
rings | number | The positive number of circular grid rings. |
Returns
Grid
A circle maze: rings rings round a middle cell, cells running round each ring and out between the rings.
Examples
import { circleGrid } from "@johnmorrisdotca/meikyuu";
console.log(circleGrid(3).cells);19What it prints (run when this page was built)