mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-24 19:16:49 +08:00
Do not return unproven mate scores from null move search
Causes very small functional change which is not observable with our usual set of test positions. However change is observable fx. with following position: 4k3/3r4/5Q2/6K1/8/8/8/8 w - - 0 1 go depth 24 Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
426f55b78d
commit
42de93ac15
@@ -1378,6 +1378,10 @@ namespace {
|
||||
|
||||
if (nullValue >= beta)
|
||||
{
|
||||
// Do not return unproven mate scores
|
||||
if (nullValue >= value_mate_in(PLY_MAX))
|
||||
nullValue = beta;
|
||||
|
||||
if (depth < 6 * OnePly)
|
||||
return nullValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user