Skip to content

Commit d320de7

Browse files
xoto10mcostalba
authored andcommitted
Remove !extension check official-stockfish#2045
While looking at pruning using see_ge() (which is very valuable) it became apparent that the !extension test is not adding any value - simplify it away. STC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 56843 W: 12621 L: 12569 D: 31653 http://tests.stockfishchess.org/tests/view/5c8588cb0ebc5925cffe77f4 LTC: LLR: 2.96 (-2.94,2.94) [-3.00,1.00] Total: 78622 W: 13223 L: 13195 D: 52204 http://tests.stockfishchess.org/tests/view/5c8611cc0ebc5925cffe7f86 Further work could be to optimize the remaining see_ge() test. The idea of less pruning at higher depths is valuable, but perhaps the test (-PawnValueEg * depth) can be improved. Bench: 3188688
1 parent 66818f2 commit d320de7

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/search.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,8 +970,7 @@ namespace {
970970
if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
971971
continue;
972972
}
973-
else if ( !extension // (~20 Elo)
974-
&& !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY)))
973+
else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
975974
continue;
976975
}
977976

0 commit comments

Comments
 (0)