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:
parent
35ada63174
commit
b5a4edd86f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue