canExtendOpeningfunction
Swap2 only: the first chooser may add two stones and pass the choice back.
Import it
import { canExtendOpening } from "@johnmorrisdotca/narabe";
Definition
function canExtendOpening(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Swap2 only: the first chooser may add two stones and pass the choice back.
Examples
import { canExtendOpening, createGame } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(canExtendOpening(state));falseWhat it prints (run when this page was built)