singlesLeftfunction
Single stones the colour to move may still lay instead of a piece.
Import it
import { singlesLeft } from "@johnmorrisdotca/narabe";
Definition
function singlesLeft(state: GameState): number
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
number
Single stones the colour to move may still lay instead of a piece.
Examples
import { createGame, singlesLeft } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(singlesLeft(state));0What it prints (run when this page was built)