endsOnItsOwnfunction
Whether the rules alone guarantee this game ends.
Import it
import { endsOnItsOwn } from "@johnmorrisdotca/narabe";
Definition
function endsOnItsOwn(settings: GameSettings): boolean
Parameters
| Name | Type | Description |
|---|---|---|
settings | GameSettings | The native game settings to interpret. |
Returns
boolean
Whether the rules alone guarantee this game ends.
Examples
import { createGame, endsOnItsOwn } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(endsOnItsOwn(state.settings));trueWhat it prints (run when this page was built)