forbiddenPointsfunction
Every empty point the colour to move is forbidden from playing right now.
Import it
import { forbiddenPoints } from "@johnmorrisdotca/narabe";
Definition
function forbiddenPoints(state: GameState): Point[]
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
Point[]
All currently forbidden points for the colour to play.
Examples
import { createGame, forbiddenPoints } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(forbiddenPoints(state));[]What it prints (run when this page was built)