mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-20 00:56:39 +08:00
Disable use of aspiration window in known win positions
When we are hunting for mate, transposition table is filled in with mate scores. Current implemenatation of aspiration search can't cope with this very well. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
committed by
Marco Costalba
parent
46c0bdb74f
commit
8acb1d7e4d
@@ -657,7 +657,7 @@ namespace {
|
||||
// Calculate dynamic search window based on previous iterations
|
||||
Value alpha, beta;
|
||||
|
||||
if (MultiPV == 1 && Iteration >= 6)
|
||||
if (MultiPV == 1 && Iteration >= 6 && abs(IterationInfo[Iteration - 1].value) < VALUE_KNOWN_WIN)
|
||||
{
|
||||
int prevDelta1 = IterationInfo[Iteration - 1].speculatedValue - IterationInfo[Iteration - 2].speculatedValue;
|
||||
int prevDelta2 = IterationInfo[Iteration - 2].speculatedValue - IterationInfo[Iteration - 3].speculatedValue;
|
||||
|
||||
Reference in New Issue
Block a user