Skip to content

Interface: Score ​

Properties ​

PropertyModifierTypeDescription
blackreadonlynumber | nullPoints for each side, komi included for White; null after resignation.
damereadonlyreadonly Point[]Empty points counted for neither side: points bordered by both colours, and, under Japanese rules, the empty areas a seki group touches. Dead stones' points count as empty.
groupsreadonlyreadonly { color: Color; status: GroupStatus; stones: readonly Point[]; }[]Every group on the board, with its status.
resultreadonlystringAs SGF RE writes it: 'B+3.5', 'W+0.5', '0' for a draw, or 'B+R' / 'W+R' after resignation.
territoryreadonly{ black: readonly Point[]; white: readonly Point[]; }-
territory.blackreadonlyreadonly Point[]-
territory.whitereadonlyreadonly Point[]-
whitereadonlynumber | null-

Released under the MIT License.