Optional goban_callback: GobanBaseOptional dontStoreBoardHistory: booleanPrivate _cur_Private _cur_Private _last_Private _outcomePrivate _phasePrivate _rulesPrivate _strict_Private Optional _undo_Private Optional _winnerPrivate aga_Private allow_Private allow_Private allow_Readonly configReadonly disable_Private dontProtected Optional goban_Optional group_Optional handicap_Readonly heightReadonly is_Optional latenciesPrivate loading_Private Optional move_Readonly nameOptional needs_Optional parentOptional rengoOptional rengo_Optional review_Optional stalling_Private superko_Optional throw_Readonly widthPrivate captureReturns a clone of .board
Clone the entire BoardState
Computes scoring locations for the board. If area_scoring is true, we
will use area scoring rules, otherwise we will use territory scoring rules
(which implies omitting territory in seki).
Decodes any of the various ways we express moves that we've accumulated over the years into
a unified JGOFMove[].
Optional isTrunkMove: booleanRest ...args: ArgumentMap<GobanEvents>[Extract<K, keyof GobanEvents>]Optional cb: ((x, y, edited, color) => void)Returns an array of groups connected to the given group. This is a bit faster than using StoneGroupBuilder because we only compute the values we need.
Returns an array of x/y pairs of all the same color
Private getOptional dont_record_placement: booleanOptional node: null | MoveTreePrivate opponentPrivate parseSGFReturns the number of stones removed. If you want the coordinates of the stones removed, pass in a removed_stones array to append the moves to.
Optional checkForKo: booleanOptional errorOnSuperKo: booleanOptional dontCheckForSuperKo: booleanOptional dontCheckForSelfCapture: booleanOptional isTrunkMove: booleanOptional removed_stones: JGOFIntersection[]Encodes an x,y pair or a move object like {x: 0, y: 0} into a move string like "A1"
Sets a position as being removed or not removed. If
emit_stone_removal_updated is set to false, the
"stone-removal.updated" event will not be emitted, and it is up to the
caller to emit this event appropriately.
Private setToggles a group of stones for removal or restoration.
By default, if we are marking a group for removal but the group is almost certainly alive (two eyes, etc), this will result in a no-op, unless force_removal is set to true.
Static clearStatic fillThis function fills in default values for any missing fields in the config.
Static Private migrateThis function migrates old config's to whatever our current standard is for configs.
Returns true if the
.boardfield from the other board is equal to this one