Skip to content

Commit

Permalink
simplify doshallowersearch
Browse files Browse the repository at this point in the history
bench 1334799
  • Loading branch information
xu-shawn committed Aug 14, 2024
1 parent ae9e55c commit cb0eb9d
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 @@ -1173,7 +1173,7 @@ Value Search::Worker::search(
// Adjust full-depth search based on LMR results - if the result was
// good enough search deeper, if it was bad enough search shallower.
const bool doDeeperSearch = value > (bestValue + 35 + 2 * newDepth); // (~1 Elo)
const bool doShallowerSearch = value < bestValue + newDepth; // (~2 Elo)
const bool doShallowerSearch = value < bestValue + 8; // (~2 Elo)

newDepth += doDeeperSearch - doShallowerSearch;

Expand Down

0 comments on commit cb0eb9d

Please sign in to comment.