Reference · Mazes, arrows and mixed boards
squareGridfunction
Columns by rows of square cells.
Import it
import { squareGrid } from "@johnmorrisdotca/meikyuu";
Definition
function squareGrid(w: number, h: number): Grid
Parameters
| Name | Type | Description |
|---|---|---|
w | number | The native grid width in cells. |
h | number | The native grid height in cells. |
Returns
Grid
Columns by rows of square cells.
Examples
import { squareGrid } from "@johnmorrisdotca/meikyuu";
console.log(squareGrid(5,5).cells);25What it prints (run when this page was built)