Skip to content

Commit 56e698e

Browse files
locutus2snicolet
authored andcommitted
Less reduction for escape moves at ttPv nodes
At expected PV nodes or nodes which marked as PV node in the hash table, reduce escape moves even one ply less. STC: LLR: 2.94 (-2.94,2.94) {-1.00,3.00} Total: 31795 W: 6140 L: 5953 D: 19702 Ptnml(0-2): 525, 3625, 7455, 3695, 583 http://tests.stockfishchess.org/tests/view/5e25d77fc3b97aa0d75bc013 LTC: LLR: 2.94 (-2.94,2.94) {0.00,2.00} Total: 43975 W: 5708 L: 5454 D: 32813 Ptnml(0-2): 314, 4012, 13070, 4242, 325 http://tests.stockfishchess.org/tests/view/5e2618c1c3b97aa0d75bc03c Closes #2505 Bench: 4475583
1 parent f63d112 commit 56e698e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/search.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ namespace {
625625
Move ttMove, move, excludedMove, bestMove;
626626
Depth extension, newDepth;
627627
Value bestValue, value, ttValue, eval, maxValue;
628-
bool ttHit, ttPv, inCheck, givesCheck, improving , didLMR, priorCapture;
628+
bool ttHit, ttPv, inCheck, givesCheck, improving, didLMR, priorCapture;
629629
bool captureOrPromotion, doFullDepthSearch, moveCountPruning, ttCapture, singularLMR;
630630
Piece movedPiece;
631631
int moveCount, captureCount, quietCount;
@@ -825,7 +825,6 @@ namespace {
825825
&& eval <= alpha - RazorMargin)
826826
return qsearch<NT>(pos, ss, alpha, beta);
827827

828-
// (~13 Elo)
829828
improving = (ss-2)->staticEval == VALUE_NONE ? (ss->staticEval > (ss-4)->staticEval
830829
|| (ss-4)->staticEval == VALUE_NONE) : ss->staticEval > (ss-2)->staticEval;
831830

@@ -1161,7 +1160,7 @@ namespace {
11611160
// hence break make_move(). (~2 Elo)
11621161
else if ( type_of(move) == NORMAL
11631162
&& !pos.see_ge(reverse_move(move)))
1164-
r -= 2;
1163+
r -= 2 + ttPv;
11651164

11661165
ss->statScore = thisThread->mainHistory[us][from_to(move)]
11671166
+ (*contHist[0])[movedPiece][to_sq(move)]

0 commit comments

Comments
 (0)