Struct alcibiades::SearchReport [] [src]

pub struct SearchReport<T> {
    pub search_id: usize,
    pub searched_nodes: u64,
    pub depth: Depth,
    pub value: Value,
    pub done: bool,
    pub data: T,
}

A progress report from a search.

Fields

The ID assigned to the search.

Should be the same for all reports from a given search.

The number of positions searched so far.

Should be no lesser than the value sent in the previous report.

The search depth completed so far.

Should be no lesser than 0. Also, no lesser than the value sent in the previous report, and no greater than the requested search depth. If the search has not been forcefully stopped, the last reported depth should be the requested search depth.

Note: Depth-first searches should send 0 in all reports except the last one.

The evaluation of the root position so far, or VALUE_UNKNOWN if not available.

If the search has not been forcefully stopped, the last report should contain the calculated final evaluation.

Note: Depth-first searches should send VALUE_UNKNOWN in all reports except the last one.

Whether the search is done.

Should be false for all reports except the last one.

Auxiliary data.

For example, this may contain calculated principal variation(s).

Trait Implementations

impl<T: Clone> Clone for SearchReport<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more