campSizefunction
Pieces a side has on size: the squares of its camp.
Import it
import { campSize } from "@johnmorrisdotca/narabe";
Definition
function campSize(size: number): number
Parameters
| Name | Type | Description |
|---|---|---|
size | number | The number of cells on each side of the board. |
Returns
number
Pieces a side has on size: the squares of its camp.
Examples
import { campSize } from "@johnmorrisdotca/narabe";
console.log(campSize(8));10What it prints (run when this page was built)