Skip to content

Commit

Permalink
fail low history
Browse files Browse the repository at this point in the history
bench 1488056
  • Loading branch information
xu-shawn committed Aug 17, 2024
1 parent ae9e55c commit 677ec72
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1363,6 +1363,10 @@ Value Search::Worker::search(
<< stat_bonus(depth) * bonus / 25;
}

// Bonus when search fails low and there is a TT move
else if (moveCount > 1 && ttData.move && (cutNode || PvNode))
thisThread->mainHistory[us][ttData.move.from_to()] << stat_bonus(depth) / 4;

if (PvNode)
bestValue = std::min(bestValue, maxValue);

Expand Down

0 comments on commit 677ec72

Please sign in to comment.