pub struct HeuristicBot { /* private fields */ }Expand description
A deterministic knowledge-based player
Fast enough for tournaments at any scale: every decision costs a few deadwood-solver calls, each microseconds.
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
Source§fn clone(&self) -> HeuristicBot
fn clone(&self) -> HeuristicBot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HeuristicBot
Source§impl Debug for HeuristicBot
impl Debug for HeuristicBot
Source§impl Default for HeuristicBot
impl Default for HeuristicBot
Source§fn default() -> HeuristicBot
fn default() -> HeuristicBot
Returns the “default value” for a type. Read more
Source§impl Strategy for HeuristicBot
impl Strategy for HeuristicBot
Source§fn offer_upcard(&mut self, view: &View<'_>) -> UpcardAction
fn offer_upcard(&mut self, view: &View<'_>) -> UpcardAction
Take or pass the initial upcard
Source§fn choose_draw(&mut self, view: &View<'_>) -> DrawAction
fn choose_draw(&mut self, view: &View<'_>) -> DrawAction
Draw from the stock or the discard pile Read more
Source§fn play_turn(&mut self, view: &View<'_>) -> TurnAction
fn play_turn(&mut self, view: &View<'_>) -> TurnAction
Discard, knock, or declare big gin Read more
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