canSkipfunction
Whether skipping is enabled and a legal corner stone can burn the turn.
Import it
import { canSkip } from "@johnmorrisdotca/narabe";
Definition
function canSkip(state: GameState): boolean
Parameters
| Name | Type | Description |
|---|---|---|
state | GameState | The current immutable game position. |
Returns
boolean
Whether skipping is enabled and the selected empty point is legal in the current phase.
Examples
import { canSkip, createGame } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(canSkip(state));falseWhat it prints (run when this page was built)