mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Be more optimistic in aspiration window
Be more optimistic wrt search instability, and set the unviolated bound half window. STC LLR: 2.96 (-2.94,2.94) [-1.00,4.00] Total: 16362 W: 3371 L: 3197 D: 9794 LTC LLR: 2.94 (-2.94,2.94) [0.00,5.00] Total: 21666 W: 3780 L: 3569 D: 14317 Bench: 6807896 Resolves #105
This commit is contained in:
parent
7ebb872409
commit
3d2aab11d8
1 changed files with 5 additions and 1 deletions
|
@ -322,18 +322,22 @@ namespace {
|
||||||
// re-search, otherwise exit the loop.
|
// re-search, otherwise exit the loop.
|
||||||
if (bestValue <= alpha)
|
if (bestValue <= alpha)
|
||||||
{
|
{
|
||||||
|
beta = (alpha + beta) / 2;
|
||||||
alpha = std::max(bestValue - delta, -VALUE_INFINITE);
|
alpha = std::max(bestValue - delta, -VALUE_INFINITE);
|
||||||
|
|
||||||
Signals.failedLowAtRoot = true;
|
Signals.failedLowAtRoot = true;
|
||||||
Signals.stopOnPonderhit = false;
|
Signals.stopOnPonderhit = false;
|
||||||
}
|
}
|
||||||
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;
|
||||||
|
|
||||||
delta += 3 * delta / 8;
|
delta += delta / 2;
|
||||||
|
|
||||||
assert(alpha >= -VALUE_INFINITE && beta <= VALUE_INFINITE);
|
assert(alpha >= -VALUE_INFINITE && beta <= VALUE_INFINITE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue