Protected
Optional
goban_Readonly
heightOptional
isobranch_Readonly
widthReturns true if the .board
field from the other board is equal to this one
Returns 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).
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
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.
Toggles 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.
The isobranch hash is a hash of the board state. This field is used by the move tree to detect isomorphic branches. This field is populated when recomputeIsoBranches is called.