Skip to content

Commit

Permalink
Try fixing github checks despite now being functional
Browse files Browse the repository at this point in the history
bench: 1349019
  • Loading branch information
mstembera committed Jan 12, 2025
1 parent b3678cd commit 9c15544
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 @@ -848,7 +848,7 @@ Value Search::Worker::search(
// If we have a good enough capture (or queen promotion) and a reduced search
// returns a value much above beta, we can (almost) safely prune the previous move.
probCutBeta = beta + 174 - 56 * improving;
if (depth > 3 //&& ttHit //1 changes bench to 1180821
if (depth > 3 && ttHit //1 changes bench to 1180821
&& !is_decisive(beta)
// If value from transposition table is lower than probCutBeta, don't attempt
// probCut there and in further interactions with transposition table cutoff
Expand Down Expand Up @@ -1143,7 +1143,7 @@ Value Search::Worker::search(

// Decrease reduction if position is or has been on the PV (~7 Elo)
if (ss->ttPv)
r -= 1037 + (/*ttHit &&*/ ttData.value > alpha) * 965 //3a changes bench to 1327627
r -= 1037 + (ttHit && ttData.value > alpha) * 965 //3a changes bench to 1327627
+ (ttHit && ttData.depth >= depth) * 960; //3b ok

// Decrease reduction for PvNodes (~0 Elo on STC, ~2 Elo on LTC)
Expand Down Expand Up @@ -1221,7 +1221,7 @@ Value Search::Worker::search(
else if (!PvNode || moveCount > 1)
{
// Increase reduction if ttMove is not present (~6 Elo)
if (/*ttHit && */ !ttData.move) //6 changes bench to 1425435
if (ttHit && !ttData.move) //6 changes bench to 1425435
r += 2111;

// Note that if expected reduction is high, we reduce search depth by 1 here (~9 Elo)
Expand Down

0 comments on commit 9c15544

Please sign in to comment.