Skip to content
Permalink
Browse files

tviigg.

bench 3206912
  • Loading branch information...
Vizvezdenec committed Jul 11, 2019
1 parent 599b6f7 commit 4560fde79ef954d3d6af8150fc64bc6d25e3f32e
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/search.cpp
@@ -1115,11 +1115,11 @@ namespace {
r += ONE_PLY;

// Decrease/increase reduction for moves with a good/bad history (~30 Elo)
r -= ss->statScore * (1 + 2 * (type_of(movedPiece) == KING)) / 16384 * ONE_PLY;

if (th.marked())
r = std::max(0, r / ONE_PLY) * ONE_PLY;
r -= ss->statScore / 16384 * ONE_PLY;
}

if (th.marked())
r = std::max(reduction(improving, depth, moveCount) / ONE_PLY - 3, r / ONE_PLY) * ONE_PLY;

Depth d = clamp(newDepth - r, ONE_PLY, newDepth);

0 comments on commit 4560fde

Please sign in to comment.
You can’t perform that action at this time.