X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fsearch.cpp;h=5bf653050df5c2185095c96564df5e581b8c4e22;hp=4ea31a0b36dcde97bda492310b681fcec6025cf5;hb=b5a4edd86f1a64a6308ea3eaa05d944a7ef817bb;hpb=35ada63174bbec6289d6dea6d3cfc5b5f14d1d27 diff --git a/src/search.cpp b/src/search.cpp index 4ea31a0b..5bf65305 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -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