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

Creates a new instance.

  • position gives the current position.

  • time gives the remaining time on the clocks.

Registers a new search progress report with the time manager.

Decides whether the search must be terminated and the best move played.

Implementors