canChooseColourfunction
Whether the game is waiting on a seat to pick a colour.
Import it
import { canChooseColour } from "@johnmorrisdotca/narabe";
Definition
function canChooseColour(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Whether the game is waiting on a seat to pick a colour.
Examples
import { canChooseColour, createGame } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(canChooseColour(state));falseWhat it prints (run when this page was built)