Skip to content

Commit

Permalink
this should scale like crap
Browse files Browse the repository at this point in the history
bench 407740
  • Loading branch information
xu-shawn committed Jan 11, 2025
1 parent c7e7b4e commit e07d877
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 @@ -838,7 +838,7 @@ Value Search::Worker::search(
// Step 10. Internal iterative reductions (~9 Elo)
// For PV nodes without a ttMove, we decrease depth.
if (PvNode && !ttData.move)
depth -= 3;
depth -= 5;

// Use qsearch if depth <= 0
if (depth <= 0)
Expand Down Expand Up @@ -1338,8 +1338,8 @@ Value Search::Worker::search(
else
{
// Reduce other moves if we have found at least one score improvement (~2 Elo)
if (depth > 2 && depth < 14 && !is_decisive(value))
depth -= 2;
if (depth < 14 && !is_decisive(value))
depth = std::max(1, depth - 5);

assert(depth > 0);
alpha = value; // Update alpha! Always alpha < beta
Expand Down

0 comments on commit e07d877

Please sign in to comment.