Skip to content

Commit

Permalink
harder futility pruning if corrhist large
Browse files Browse the repository at this point in the history
bench 1294909
  • Loading branch information
Ergodice committed Dec 27, 2024
1 parent f656fdf commit 5e0887d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -787,6 +787,7 @@ Value Search::Worker::search(
if (!ss->ttPv && depth < 14
&& eval - futility_margin(depth, cutNode && !ss->ttHit, improving, opponentWorsening)
- (ss - 1)->statScore / 290
+ (ss->staticEval == eval) * (40 - std::abs(correctionValue) / 131072)
>= beta
&& eval >= beta && (!ttData.move || ttCapture) && !is_loss(beta) && !is_win(eval))
return beta + (eval - beta) / 3;
Expand Down

0 comments on commit 5e0887d

Please sign in to comment.