Skip to content

Commit

Permalink
Decrease probCutBeta based on opponentWorsening
Browse files Browse the repository at this point in the history
  • Loading branch information
TarasVuk authored and PikaCat-OuO committed Oct 4, 2024
1 parent 3bf3b93 commit baec5cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ Value Search::Worker::search(
// Step 10. ProbCut (~10 Elo)
// If we have a good enough capture and a reduced search returns a value
// much above beta, we can (almost) safely prune the previous move.
probCutBeta = beta + 173 - 66 * improving;
probCutBeta = beta + 173 - 66 * improving - 30 * opponentWorsening;
if (!PvNode && depth > 4
&& std::abs(beta) < VALUE_MATE_IN_MAX_PLY
// If value from transposition table is lower than probCutBeta, don't attempt
Expand Down

0 comments on commit baec5cd

Please sign in to comment.