HeadStarttype
A start given to one colour — the weaker player's — before the game is even.
freeTurns: turns this colour takes at the start with nothing played
between them, 0 to 3. Each is recorded as the other colour's pass, so a
replay reaches the same position from the move list alone.
traditional: how much of the game's own traditional head start this colour
is given — handicap stones, corners, or the other side's men taken off —
as its spec's headStart names; 0 for none. See rules/headStart.ts.
The opposite colour from a handicap's, by nature: a handicap makes the stronger side's game harder, a head start makes the weaker side's easier.
Import it
import type { HeadStart } from "@johnmorrisdotca/narabe";
Definition
type HeadStart = {
stone: Stone | null;
freeTurns: number;
traditional: number;
};
Members
| Name | Type | Description |
|---|---|---|
stone | Stone | null | |
freeTurns | number | |
traditional | number |
Examples
import type { HeadStart } from "@johnmorrisdotca/narabe";
const value: HeadStart = {stone:"black",freeTurns:1,traditional:0};
console.log(value);{ stone: 'black', freeTurns: 1, traditional: 0 }What it prints (run when this page was built)