1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 01:03:09 +00:00

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 <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba 2010-02-02 08:51:54 +01:00
parent 35ada63174
commit b5a4edd86f

View 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