Skip to content

Commit 07b5a28

Browse files
VoyagerOnemcostalba
authored andcommitted
Decrease reduction for exact PV nodes
STC: LLR: 2.96 (-2.94,2.94) [0.00,5.00] Total: 59004 W: 10621 L: 10249 D: 38134 LTC: LLR: 2.95 (-2.94,2.94) [0.00,5.00] Total: 25801 W: 3306 L: 3108 D: 19387 Bench: 5742466
1 parent c33af32 commit 07b5a28

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/search.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ namespace {
543543
Depth extension, newDepth;
544544
Value bestValue, value, ttValue, eval;
545545
bool ttHit, inCheck, givesCheck, singularExtensionNode, improving;
546-
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, skipQuiets, ttCapture;
546+
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, skipQuiets, ttCapture, pvExact;
547547
Piece movedPiece;
548548
int moveCount, quietCount;
549549

@@ -813,6 +813,7 @@ namespace {
813813
&& tte->depth() >= depth - 3 * ONE_PLY;
814814
skipQuiets = false;
815815
ttCapture = false;
816+
pvExact = PvNode && ttHit && tte->bound() == BOUND_EXACT;
816817

817818
// Step 11. Loop through moves
818819
// Loop through all pseudo-legal moves until no moves remain or a beta cutoff occurs
@@ -957,6 +958,10 @@ namespace {
957958
if ((ss-1)->moveCount > 15)
958959
r -= ONE_PLY;
959960

961+
// Decrease reduction for exact PV nodes
962+
if (pvExact)
963+
r -= ONE_PLY;
964+
960965
// Increase reduction if ttMove is a capture
961966
if (ttCapture)
962967
r += ONE_PLY;

0 commit comments

Comments
 (0)