#[non_exhaustive]pub struct Stats {
pub nodes: u64,
pub cuts: u64,
pub horizon: u64,
pub max_ply: u32,
pub table_hits: u64,
pub researches: u64,
pub passes: u64,
pub widenings: u64,
}Expand description
Counters collected during one search run.
Non-exhaustive: later algorithms may add counters. Start from Stats::default where a
value is needed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nodes: u64Positions visited, the root included: each one was either expanded or evaluated.
cuts: u64Positions whose remaining moves were skipped, by a window cutoff or because
Game::satisfices said so. Always 0 for the reference
searches.
horizon: u64Positions reached with no plies left, whether or not the game goes on there: scored by
Game::evaluate, or searched on through their
Game::noisy_moves, whose positions count here too.
max_ply: u32The deepest ply visited: the most moves played from the root to any position the search reached.
table_hits: u64Positions answered by a transposition table entry instead of being searched.
researches: u64Children searched a second time because a principal variation search scout found
them better than expected. Always 0 for the other algorithms.
passes: u64Root searches MTD(f) ran, its final and fallback searches included. Always 0 for
the other algorithms.
widenings: u64Iterations searched again with a wider window because the score fell outside an
aspiration window (see Deepening::window).