]> git.sesse.net Git - stockfish/commitdiff
Simplification: last capture extension
authorVizvezdenec <Vizvezdenec@gmail.com>
Wed, 14 Apr 2021 18:25:18 +0000 (21:25 +0300)
committerStéphane Nicolet <cassio@free.fr>
Thu, 15 Apr 2021 09:41:30 +0000 (11:41 +0200)
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

index f23db4c1919cf8b7db978b2c6cfee0fb2d494422..c9ee47fea11b2d0eaa53be2a5871918de57fd9c1 100644 (file)
@@ -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;