Trait alcibiades::TimeManager
[−]
[src]
pub trait TimeManager<T: SearchExecutor<ReportData=Vec<Variation>>>: SetOption { fn new(position: &T::SearchNode, time: &RemainingTime) -> Self; fn update(&mut self, report: &SearchReport<Vec<Variation>>); fn must_play(&self) -> bool; }
A trait for deciding when the search must be terminated and the best move played.
Required Methods
fn new(position: &T::SearchNode, time: &RemainingTime) -> Self
Creates a new instance.
position
gives the current position.time
gives the remaining time on the clocks.
fn update(&mut self, report: &SearchReport<Vec<Variation>>)
Registers a new search progress report with the time manager.
fn must_play(&self) -> bool
Decides whether the search must be terminated and the best move played.
Implementors
impl<S> TimeManager<S> for StdTimeManager where S: SearchExecutor<ReportData=Vec<Variation>>
impl<S> TimeManager<S> for DummyTimeManager where S: SearchExecutor<ReportData=Vec<Variation>>