]> git.sesse.net Git - stockfish/commitdiff
Gradually relax the NMP staticEval check
authorajithcj <achajo@yahoo.co.in>
Thu, 14 Jul 2016 08:14:32 +0000 (08:14 +0000)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 16 Jul 2016 05:35:31 +0000 (07:35 +0200)
Gradually relax the NMP staticEval check as we go to
higher depths.

Use tuned values.

STC
LLR: 2.95 (-2.94,2.94) [0.00,5.00]
Total: 16745 W: 3371 L: 3168 D: 10206

LTC:
LLR: 2.96 (-2.94,2.94) [0.00,5.00]
Total: 5906 W: 875 L: 736 D: 4295

bench: 8548212

src/search.cpp

index b735281729e78387359866d60d36f20d936e6165..59b1b1f19a84f19dccb8c58b288d53c6944ace9c 100644 (file)
@@ -731,7 +731,7 @@ namespace {
     if (   !PvNode
         &&  depth >= 2 * ONE_PLY
         &&  eval >= beta
-        && (ss->staticEval >= beta || depth >= 12 * ONE_PLY)
+        && (ss->staticEval >= beta - 35 * (depth / ONE_PLY - 6) || depth >= 13 * ONE_PLY)
         &&  pos.non_pawn_material(pos.side_to_move()))
     {
         ss->currentMove = MOVE_NULL;