From: Marco Costalba Date: Wed, 27 Jan 2010 11:05:27 +0000 (+0100) Subject: Stricter conditions in main search stand pat X-Git-Url: https://git.sesse.net/?p=stockfish;a=commitdiff_plain;h=bd358533a4ac2296a6cf7f89ae0f288d91f68029 Stricter conditions in main search stand pat Not a biggie but is a reduced pruned patch that doesn't seems to hurt, so it is welcomed ;-) After 999 games at 1+0 Mod vs Orig +207 =601 -191 +6 ELO Signed-off-by: Marco Costalba --- diff --git a/src/search.cpp b/src/search.cpp index 8f7c4875..378c3d20 100644 --- a/src/search.cpp +++ b/src/search.cpp @@ -1497,10 +1497,9 @@ namespace { // Do a "stand pat". If we are above beta by a good margin then // return immediately. - // FIXME: test with added condition 'allowNullmove || depth <= OnePly' and !value_is_mate(beta) - // FIXME: test with modified condition 'depth < RazorDepth' if ( !isCheck - && depth < SelectiveDepth + && allowNullmove + && depth < RazorDepth && staticValue - FutilityMargins[int(depth)] >= beta) return staticValue - FutilityMargins[int(depth)];