Skip to content

Commit

Permalink
disable reverse futility pruning at PV nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
brunocodutra committed Nov 21, 2024
1 parent c777d95 commit a95d545
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/search/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ impl Engine {

if alpha >= beta || ply >= Ply::MAX {
return Ok(pv);
} else if pv.score() - self.rfp(depth, ply) >= beta {
} else if !is_pv && pv.score() - self.rfp(depth, ply) >= beta {
#[cfg(not(test))]
// The reverse futility pruning heuristic is not exact.
return Ok(pv);
Expand Down

0 comments on commit a95d545

Please sign in to comment.