From b5a4edd86f1a64a6308ea3eaa05d944a7ef817bb Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Tue, 2 Feb 2010 08:51:54 +0100 Subject: [PATCH] Renamed stand pat as 'static null move pruning' It seems more standard conformant. Also added a bit of description directly from Tord. No functional change. Signed-off-by: Marco Costalba --- src/search.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 -- 2.39.2