pub struct Board { /* fields omitted */ }
A sqaure binoxxo board with a side length and its fields.
Creates a new binoxxo board of side length size
.
Panics if size
is odd or 0
.
Sets field at column x
and row y
to Empty
.
Panics if x
or y
are out-of-bounds (larger or equal to get_size
).
Panics if field at given coordinates is already Empty
.
Sets field at column x
and row y
to field
.
Panics if x
or y
are out-of-bounds (larger or equal to get_size
).
Panics if field
is Empty
.
Returns field at column x
and row y
to field
.
Panics if x
or y
are out-of-bounds (larger or equal to get_size
).
Returns side length of board size
.
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
The associated error which can be returned from parsing.
Parses a string s
to return a value of this type. Read more