Also requires moving optimism initialization, this is a very early `evaluate()` call.
STC: https://tests.stockfishchess.org/tests/view/
6428c39677ff3301150ca0d7
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 51256 W: 13805 L: 13612 D: 23839
Ptnml(0-2): 145, 5283, 14592, 5450, 158
LTC: https://tests.stockfishchess.org/tests/view/
64296ff377ff3301150cc519
LLR: 2.94 (-2.94,2.94) <-1.75,0.25>
Total: 106968 W: 28951 L: 28830 D: 49187
Ptnml(0-2): 47, 9746, 33789, 9843, 59
closes https://github.com/official-stockfish/Stockfish/pull/4492
no functional change
bestValue = delta = alpha = -VALUE_INFINITE;
beta = VALUE_INFINITE;
+ optimism[us] = optimism[~us] = VALUE_ZERO;
if (mainThread)
{
int rootComplexity;
- if (Eval::useNNUE)
- Eval::NNUE::evaluate(rootPos, true, &rootComplexity);
- else
- Eval::evaluate(rootPos, &rootComplexity);
+ Eval::evaluate(rootPos, &rootComplexity);
mainThread->complexity = std::min(1.03 + (rootComplexity - 241) / 1552.0, 1.45);
multiPV = std::min(multiPV, rootMoves.size());
- optimism[us] = optimism[~us] = VALUE_ZERO;
-
int searchAgainCounter = 0;
// Iterative deepening loop until requested to stop or the target depth is reached