]> git.sesse.net Git - stockfish/blobdiff - src/search.cpp
Renamed stand pat as 'static null move pruning'
[stockfish] / src / search.cpp
index 4ea31a0b36dcde97bda492310b681fcec6025cf5..5bf653050df5c2185095c96564df5e581b8c4e22 100644 (file)
@@ -1492,8 +1492,9 @@ namespace {
         update_gains(pos, ss[ply - 1].currentMove, ss[ply - 1].eval, ss[ply].eval);
     }
 
-    // Do a "stand pat". If we are above beta by a good margin then
-    // return immediately.
+    // Static null move pruning. We're betting that the opponent doesn't have
+    // a move that will reduce the score by more than FutilityMargins[int(depth)]
+    // if we do a null move.
     if (  !isCheck
         && allowNullmove
         && depth < RazorDepth