Skip to content

Commit

Permalink
Revert "Adjust return bonus from tt cutoffs at fail highs"
Browse files Browse the repository at this point in the history
This reverts commit 783dfc2.

could lead to a division by zero for:

ttValue = (ttValue * tte->depth() + beta) / (tte->depth() + 1)

as other threads can overwrite the tte with a QS depth of -1.

closes #5338

Bench: 1280020
  • Loading branch information
vondele committed Jun 2, 2024
1 parent c17d73c commit 8aaae03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -640,12 +640,7 @@ Value Search::Worker::search(
// Partial workaround for the graph history interaction problem
// For high rule50 counts don't produce transposition table cutoffs.
if (pos.rule50_count() < 90)
{
if (ttValue >= beta && std::abs(ttValue) < VALUE_TB_WIN_IN_MAX_PLY
&& std::abs(beta) < VALUE_TB_WIN_IN_MAX_PLY)
ttValue = (ttValue * tte->depth() + beta) / (tte->depth() + 1);
return ttValue;
}
}

// Step 5. Tablebases probe
Expand Down

0 comments on commit 8aaae03

Please sign in to comment.