]> git.sesse.net Git - stockfish/commitdiff
Remove !extension check #2045
authorxoto10 <buylow001@gmail.com>
Sun, 10 Mar 2019 21:57:48 +0000 (21:57 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Wed, 20 Mar 2019 13:57:34 +0000 (14:57 +0100)
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

src/search.cpp

index cf934fc92c15434066828c72498f87f0d7f8e340..7043e49dbe2bd8cac54fee35c5365baad1685cd0 100644 (file)
@@ -970,8 +970,7 @@ moves_loop: // When in check, search starts from here
               if (!pos.see_ge(move, Value(-29 * lmrDepth * lmrDepth)))
                   continue;
           }
-          else if (   !extension // (~20 Elo)
-                   && !pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY)))
+          else if (!pos.see_ge(move, -PawnValueEg * (depth / ONE_PLY))) // (~20 Elo)
                   continue;
       }