canGrowBoardfunction
Whether resizing is enabled and a larger native board is available.
Import it
import { canGrowBoard } from "@johnmorrisdotca/narabe";
Definition
function canGrowBoard(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Whether resizing is enabled and a larger native board is available.
Examples
import { canGrowBoard, createGame } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(canGrowBoard(state));falseWhat it prints (run when this page was built)