pub struct Goban { /* fields omitted */ }
Removes all the stones from the goban.
Get all the neighbors to the coordinate
Get all the stones that are neighbor to the coord except empty intersections
Get all the stones except "Empty stones"
Get stones by their color.
Returns the empty stones connected to the point
Returns the number of liberties. of the stone
Returns true if the stone has liberties.
Get all the groups of connected atari stones
Get all the groups of connected atari stones of a color.
if the color is empty it's an undefined behaviour
Can get a group of stones and his neighbors with a Breadth First Search,
works for Empty stones too.
Use a breadth first search to deduce the groups of connected stones.
Get stones connected. [[x,y,z],[a,e,r]] example of return.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static