pub struct Rules {
pub allow_multi_stone_suicide: bool,
}
Expand description
The specific Go rules used. See KataGo’s supported rules for an overview of the variants.
Fields§
§allow_multi_stone_suicide: bool
Implementations§
Source§impl Rules
impl Rules
Sourcepub const fn tromp_taylor() -> Self
pub const fn tromp_taylor() -> Self
Tromp-Taylor rules, see https://tromp.github.io/go.html.
Sourcepub const fn cgos() -> Self
pub const fn cgos() -> Self
Rules used by the Computer Go Server. The same as Tromp-Taylor except suicide is not allowed.
pub fn needs_history(&self) -> bool
pub fn allow_repeating_tiles(&self) -> bool
Trait Implementations§
impl Copy for Rules
impl Eq for Rules
impl StructuralPartialEq for Rules
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnwindSafe for Rules
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more