Struct minimax::strategies::iterative::IterativeSearch
source · pub struct IterativeSearch<E: Evaluator> { /* private fields */ }
Implementations§
Trait Implementations§
source§impl<E: Evaluator> Strategy<<E as Evaluator>::G> for IterativeSearch<E>where
<E::G as Game>::S: Clone,
<E::G as Game>::M: Copy + Eq,
impl<E: Evaluator> Strategy<<E as Evaluator>::G> for IterativeSearch<E>where <E::G as Game>::S: Clone, <E::G as Game>::M: Copy + Eq,
fn choose_move(&mut self, s: &<E::G as Game>::S) -> Option<<E::G as Game>::M>
source§fn set_timeout(&mut self, max_time: Duration)
fn set_timeout(&mut self, max_time: Duration)
For strategies that can ponder indefinitely, set the timeout.
This can be changed between calls to choose_move.
source§fn set_max_depth(&mut self, depth: u8)
fn set_max_depth(&mut self, depth: u8)
Set the maximum depth to evaluate (instead of the timeout).
This can be changed between calls to choose_move.
Auto Trait Implementations§
impl<E> RefUnwindSafe for IterativeSearch<E>where E: RefUnwindSafe, <<E as Evaluator>::G as Game>::M: RefUnwindSafe,
impl<E> Send for IterativeSearch<E>where E: Send, <<E as Evaluator>::G as Game>::M: Send,
impl<E> Sync for IterativeSearch<E>where E: Sync, <<E as Evaluator>::G as Game>::M: Sync,
impl<E> Unpin for IterativeSearch<E>where E: Unpin, <<E as Evaluator>::G as Game>::M: Unpin,
impl<E> UnwindSafe for IterativeSearch<E>where E: UnwindSafe, <<E as Evaluator>::G as Game>::M: UnwindSafe,
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