Skip to content

Commit

Permalink
Probcut in check no matter if pv or capture
Browse files Browse the repository at this point in the history
  • Loading branch information
dubslow authored and PikaCat-OuO committed Jul 2, 2024
1 parent 839800f commit 72b7d57
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,9 +799,9 @@ Value Search::Worker::search(

// Step 11. A small Probcut idea, when we are in check (~4 Elo)
probCutBeta = beta + 425;
if (ss->inCheck && !PvNode && ttCapture && (ttData.bound & BOUND_LOWER)
&& ttData.depth >= depth - 3 && ttData.value >= probCutBeta
&& std::abs(ttData.value) < VALUE_MATE_IN_MAX_PLY && std::abs(beta) < VALUE_MATE_IN_MAX_PLY)
if (ss->inCheck && (ttData.bound & BOUND_LOWER) && ttData.depth >= depth - 3
&& ttData.value >= probCutBeta && std::abs(ttData.value) < VALUE_MATE_IN_MAX_PLY
&& std::abs(beta) < VALUE_MATE_IN_MAX_PLY)
return probCutBeta;

const PieceToHistory* contHist[] = {(ss - 1)->continuationHistory,
Expand Down

0 comments on commit 72b7d57

Please sign in to comment.