DRAW_LIMITSconstant
The shares of the board a game may be called a draw at.
A fraction rather than a number of moves, so one setting means the same
thing on every board: half of a 9x9 is forty moves and half of a 19x19 is
a hundred and eighty, and neither needs anybody to work it out. none is
the default and is how every game here behaved before this existed.
Import it
import { DRAW_LIMITS } from "@johnmorrisdotca/narabe";
Definition
const DRAW_LIMITS: { readonly none: "none"; readonly half: "half"; readonly threeQuarters: "threeQuarters"; } = {
none: "none",
half: "half",
threeQuarters: "threeQuarters",
} as const satisfies Record<DrawLimit, DrawLimit>
Members
| Name | Type | Description |
|---|---|---|
none | "none" | |
half | "half" | |
threeQuarters | "threeQuarters" |
Examples
import { DRAW_LIMITS } from "@johnmorrisdotca/narabe";
console.log(DRAW_LIMITS);{ none: 'none', half: 'half', threeQuarters: 'threeQuarters' }What it prints (run when this page was built)