From 6b5d671cdc30751d79765edc8ae5320255ce120c Mon Sep 17 00:00:00 2001 From: VoyagerOne Date: Sun, 3 Jun 2018 16:46:18 -0400 Subject: [PATCH] Simplify LMR for captures 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 | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index 4e6358c0..0574da58 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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 ( (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; -- 2.39.2