Function inanis::engine::qsearch::futility_pruning_can_be_applied
source · fn futility_pruning_can_be_applied(
move_score: i16,
stand_pat: i16,
alpha: i16
) -> bool
Expand description
Checks if the futility pruning can be applied for move_score
. The main idea here is similar to score pruning, but instead of checking
if the specified capture sequence loses some material or not, it checks if the final result added to the stand_pat
and FUTILITY_PRUNING_MARGIN
will be below alpha - if yes, then we can safely assume that this move is not enough good to be relevant for the search.