Function inanis::engine::qsearch::run

source ·
pub fn run<const DIAG: bool>(
    context: &mut SearchContext,
    ply: u16,
    alpha: i16,
    beta: i16
) -> i16
Expand description

Entry point of the quiescence search. The main idea here is to reduce the horizon effect by processing capture sequences and eventually make a quiet position suitable for final evaluation. context, ply, alpha and beta are provided by the leaf of the regular search. If DIAG is set to true, additional statistics will be gathered (with a small performance penalty).

Search steps: