HandicapTermstype
EVERYTHING THAT MAKES A GAME UNEVEN ON PURPOSE, as hasHandicap reads it:
the per-colour handicap and the head start. Every question that takes it —
whether a rating may move, on the pages, the set-up screen and the writers —
has to be handed both, so none of them can go on rating a game with either.
Import it
import type { HandicapTerms } from "@johnmorrisdotca/narabe";
Definition
type HandicapTerms = Pick<GameSettings, "handicap" | "headStart">;
Members
| Name | Type | Description |
|---|---|---|
handicap | Handicap | |
headStart | HeadStart | A start for one colour, see HeadStart. |
Examples
import type { HandicapTerms } from "@johnmorrisdotca/narabe";
import { NO_HANDICAP, NO_HEAD_START } from "@johnmorrisdotca/narabe";
const value: HandicapTerms = {handicap:NO_HANDICAP,headStart:NO_HEAD_START};
console.log(value);{
handicap: {
stone: null,
doubleThree: false,
doubleFour: false,
overline: false,
exactLine: false,
openLine: false,
longerLine: false,
singleStone: false,
noCaptures: false,
secondStoneExclusion: 0
},
headStart: { stone: null, freeTurns: 0, traditional: 0 }
}What it prints (run when this page was built)