inLayingPhasefunction
Classic reversi: the first four discs are laid by the players, in the centre, with no flipping.
Import it
import { inLayingPhase } from "@johnmorrisdotca/narabe";
Definition
function inLayingPhase(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Classic reversi: the first four discs are laid by the players, in the centre, with no flipping.
Examples
import { createGame, inLayingPhase } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(inLayingPhase(state));falseWhat it prints (run when this page was built)