mirror of
https://github.com/sockspls/badfish
synced 2025-07-13 04:29:15 +00: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:
parent
46c0bdb74f
commit
8acb1d7e4d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue