Optional
goban_callback: GobanBaseProtected
Optional
goban_Readonly
heightReadonly
widthPrivate
_floodReturns 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.
Constructs a new board with the given configuration. If height/width are not provided, they will be inferred from the board array, or will default to 19x19 if no board is provided.
Any state matrices (board, removal, etc..) provided will be cloned and must have the same dimensionality.