]> git.sesse.net Git - stockfish/commitdiff
Simplify LMR for captures
authorVoyagerOne <excelgeek@gmail.com>
Sun, 3 Jun 2018 20:46:18 +0000 (16:46 -0400)
committerStéphane Nicolet <cassio@free.fr>
Tue, 5 Jun 2018 07:58:10 +0000 (09:58 +0200)
Simplify LMR for captures by removing capture's stat score logic for reduction.

STC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 37068 W: 7462 L: 7370 D: 22236
http://tests.stockfishchess.org/tests/view/5b115bc30ebc591af58a6fd2

LTC:
LLR: 2.95 (-2.94,2.94) [-3.00,1.00]
Total: 80061 W: 11706 L: 11671 D: 56684
http://tests.stockfishchess.org/tests/view/5b117f590ebc59033d2d5315

Closes https://github.com/official-stockfish/Stockfish/pull/1631

Bench: 4470519

src/search.cpp

index 4e6358c0d804f91fd6e8b038ec33e8c605b3e739..0574da5897274c2653f82234675a08545de9c644 100644 (file)
@@ -996,8 +996,7 @@ moves_loop: // When in check, search starts from here
           if (captureOrPromotion) // (~5 Elo)
           {
               // Increase reduction by comparing opponent's stat score
           if (captureOrPromotion) // (~5 Elo)
           {
               // Increase reduction by comparing opponent's stat score
-              if (   (ss-1)->statScore >= 0
-                  && thisThread->captureHistory[movedPiece][to_sq(move)][type_of(pos.captured_piece())] < 0)
+              if ((ss-1)->statScore >= 0)
                   r += ONE_PLY;
 
               r -= r ? ONE_PLY : DEPTH_ZERO;
                   r += ONE_PLY;
 
               r -= r ? ONE_PLY : DEPTH_ZERO;