pub struct HeuristicBot { /* private fields */ }Expand description
A deterministic knowledge-based player
Fast enough for tournaments at any scale: every decision is a handful of bit operations.
Implementations§
Source§impl HeuristicBot
impl HeuristicBot
Sourcepub const fn with_config(config: HeuristicConfig) -> Self
pub const fn with_config(config: HeuristicConfig) -> Self
A bot with custom tuning
Trait Implementations§
Source§impl Clone for HeuristicBot
impl Clone for HeuristicBot
impl Copy for HeuristicBot
Source§impl Debug for HeuristicBot
impl Debug for HeuristicBot
Source§impl Default for HeuristicBot
impl Default for HeuristicBot
Source§impl Strategy for HeuristicBot
impl Strategy for HeuristicBot
Auto Trait Implementations§
impl Freeze for HeuristicBot
impl RefUnwindSafe for HeuristicBot
impl Send for HeuristicBot
impl Sync for HeuristicBot
impl Unpin for HeuristicBot
impl UnsafeUnpin for HeuristicBot
impl UnwindSafe for HeuristicBot
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