quadrantCountfunction
How many quadrants a board of this size holds.
Import it
import { quadrantCount } from "@johnmorrisdotca/narabe";
Definition
function quadrantCount(size: number, quadrantSize: number): number
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
quadrantSize | number | The number of cells on each side of a quadrant. |
Returns
number
How many quadrants a board of this size holds.
Examples
import { quadrantCount } from "@johnmorrisdotca/narabe";
console.log(quadrantCount(6,3));4What it prints (run when this page was built)