From 14d162d9f4f3544acf617de46a38a69878003e31 Mon Sep 17 00:00:00 2001 From: Vizvezdenec Date: Wed, 14 Apr 2021 21:25:18 +0300 Subject: [PATCH] Simplification: last capture extension The code for last capture extension can be removed in current master. Passed STC LLR: 2.95 (-2.94,2.94) {-1.00,0.20} Total: 85024 W: 7754 L: 7707 D: 69563 Ptnml(0-2): 293, 5991, 29914, 6004, 310 https://tests.stockfishchess.org/tests/view/607690f1814175337896068f Passed LTC LLR: 2.96 (-2.94,2.94) {-0.70,0.20} Total: 39880 W: 1503 L: 1453 D: 36924 Ptnml(0-2): 17, 1281, 17293, 1333, 16 https://tests.stockfishchess.org/tests/view/6076ccbe814175337896069e Closes https://github.com/official-stockfish/Stockfish/pull/3430 Bench: 4202264 --- src/search.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/search.cpp b/src/search.cpp index f23db4c1..c9ee47fe 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1158,11 +1158,6 @@ moves_loop: // When in check, search starts from here && (pos.is_discovered_check_on_king(~us, move) || pos.see_ge(move))) extension = 1; - // Last captures extension - else if ( PieceValue[EG][pos.captured_piece()] > PawnValueEg - && pos.non_pawn_material() <= 2 * RookValueMg) - extension = 1; - // Add extension to new depth newDepth += extension; -- 2.39.2