mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
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
This commit is contained in:
parent
c33af32dad
commit
07b5a28a68
1 changed files with 6 additions and 1 deletions
|
@ -543,7 +543,7 @@ namespace {
|
||||||
Depth extension, newDepth;
|
Depth extension, newDepth;
|
||||||
Value bestValue, value, ttValue, eval;
|
Value bestValue, value, ttValue, eval;
|
||||||
bool ttHit, inCheck, givesCheck, singularExtensionNode, improving;
|
bool ttHit, inCheck, givesCheck, singularExtensionNode, improving;
|
||||||
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, skipQuiets, ttCapture;
|
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, skipQuiets, ttCapture, pvExact;
|
||||||
Piece movedPiece;
|
Piece movedPiece;
|
||||||
int moveCount, quietCount;
|
int moveCount, quietCount;
|
||||||
|
|
||||||
|
@ -813,6 +813,7 @@ moves_loop: // When in check search starts from here
|
||||||
&& tte->depth() >= depth - 3 * ONE_PLY;
|
&& tte->depth() >= depth - 3 * ONE_PLY;
|
||||||
skipQuiets = false;
|
skipQuiets = false;
|
||||||
ttCapture = false;
|
ttCapture = false;
|
||||||
|
pvExact = PvNode && ttHit && tte->bound() == BOUND_EXACT;
|
||||||
|
|
||||||
// Step 11. Loop through moves
|
// Step 11. Loop through moves
|
||||||
// Loop through all pseudo-legal moves until no moves remain or a beta cutoff occurs
|
// Loop through all pseudo-legal moves until no moves remain or a beta cutoff occurs
|
||||||
|
@ -957,6 +958,10 @@ moves_loop: // When in check search starts from here
|
||||||
if ((ss-1)->moveCount > 15)
|
if ((ss-1)->moveCount > 15)
|
||||||
r -= ONE_PLY;
|
r -= ONE_PLY;
|
||||||
|
|
||||||
|
// Decrease reduction for exact PV nodes
|
||||||
|
if (pvExact)
|
||||||
|
r -= ONE_PLY;
|
||||||
|
|
||||||
// Increase reduction if ttMove is a capture
|
// Increase reduction if ttMove is a capture
|
||||||
if (ttCapture)
|
if (ttCapture)
|
||||||
r += ONE_PLY;
|
r += ONE_PLY;
|
||||||
|
|
Loading…
Add table
Reference in a new issue