Don't modify alpha window on fail-high
Bench:
5875983
Closes #1172
}
}
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);
++static_cast<MainThread*>(thisThread)->bestMoveChanges;
}
else
++static_cast<MainThread*>(thisThread)->bestMoveChanges;
}
else
- // All other moves but the PV are set to the lowest value: this is
- // not a problem when sorting because the sort is stable and the
+ // All other moves but the PV are set to the lowest value: this
+ // 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.
rm.score = -VALUE_INFINITE;
}
// move position in the list is preserved - just the PV is pushed up.
rm.score = -VALUE_INFINITE;
}