inMovePhasefunction
Whether the colour to move has all its pieces down and must now slide one.
Import it
import { inMovePhase } from "@johnmorrisdotca/narabe";
Definition
function inMovePhase(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Whether the colour to move has all its pieces down and must now slide one.
Examples
import { createGame, inMovePhase } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(inMovePhase(state));falseWhat it prints (run when this page was built)