mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Simplify aspiration window
Don't modify alpha window on fail-high Bench: 5875983 Closes #1172
This commit is contained in:
@@ -437,10 +437,7 @@ void Thread::search() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (bestValue >= beta)
|
else if (bestValue >= beta)
|
||||||
{
|
|
||||||
alpha = (alpha + beta) / 2;
|
|
||||||
beta = std::min(bestValue + delta, VALUE_INFINITE);
|
beta = std::min(bestValue + delta, VALUE_INFINITE);
|
||||||
}
|
|
||||||
else
|
else
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -1061,8 +1058,8 @@ moves_loop: // When in check search starts from here
|
|||||||
++static_cast<MainThread*>(thisThread)->bestMoveChanges;
|
++static_cast<MainThread*>(thisThread)->bestMoveChanges;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
// All other moves but the PV are set to the lowest value: this is
|
// All other moves but the PV are set to the lowest value: this
|
||||||
// not a problem when sorting because the sort is stable and the
|
// is not a problem when sorting because the sort is stable and the
|
||||||
// move position in the list is preserved - just the PV is pushed up.
|
// move position in the list is preserved - just the PV is pushed up.
|
||||||
rm.score = -VALUE_INFINITE;
|
rm.score = -VALUE_INFINITE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user