hasHandicapfunction
Whether any handicap is in force for anyone: harder rules for one colour, or a head start for one.
THE ONE PLACE THAT QUESTION IS ANSWERED, and a rating depends on it: a game
this is true of moves nobody's rating (handicapRefusal). The head start
joined here and in HandicapTerms, and was refused a rating without anybody
having to find the rating code.
Import it
import { hasHandicap } from "@johnmorrisdotca/narabe";
Definition
function hasHandicap(settings: HandicapTerms): boolean
Parameters
| Name | Type | Description |
|---|---|---|
settings | HandicapTerms | The native game settings to interpret. |
Returns
boolean
Whether any handicap is in force for anyone: harder rules for one colour, or a head start for one. THE ONE PLACE THAT QUESTION IS ANSWERED, and a rating depends on it: a game this is true of moves nobody's rating (handicapRefusal). The head start joined here and in HandicapTerms, and was refused a rating without anybody having to find the rating code.
Examples
import { createGame, hasHandicap } from "@johnmorrisdotca/narabe";
const state = createGame({variant:"freestyle",size:15});
console.log(hasHandicap(state.settings));falseWhat it prints (run when this page was built)