mirror of
https://github.com/sockspls/badfish
synced 2025-05-01 09:13:08 +00:00
Update complexityAverage
in all branches of static eval
STC: https://tests.stockfishchess.org/tests/view/63dda49573223e7f52ad0f8c LLR: 2.95 (-2.94,2.94) <-1.75,0.25> Total: 117416 W: 31173 L: 31049 D: 55194 Ptnml(0-2): 290, 12246, 33533, 12328, 311 LTC: https://tests.stockfishchess.org/tests/view/63dfa90873223e7f52ad69b8 LLR: 2.94 (-2.94,2.94) <-1.75,0.25> Total: 44416 W: 11924 L: 11744 D: 20748 Ptnml(0-2): 5, 4036, 13968, 4172, 27 closes https://github.com/official-stockfish/Stockfish/pull/4385 bench 4758694
This commit is contained in:
parent
8f843633db
commit
e25bcaed3c
1 changed files with 1 additions and 3 deletions
|
@ -743,7 +743,6 @@ namespace {
|
||||||
ss->staticEval = eval = evaluate(pos, &complexity);
|
ss->staticEval = eval = evaluate(pos, &complexity);
|
||||||
else // Fall back to (semi)classical complexity for TT hits, the NNUE complexity is lost
|
else // Fall back to (semi)classical complexity for TT hits, the NNUE complexity is lost
|
||||||
complexity = abs(ss->staticEval - pos.psq_eg_stm());
|
complexity = abs(ss->staticEval - pos.psq_eg_stm());
|
||||||
thisThread->complexityAverage.update(complexity);
|
|
||||||
|
|
||||||
// ttValue can be used as a better position evaluation (~7 Elo)
|
// ttValue can be used as a better position evaluation (~7 Elo)
|
||||||
if ( ttValue != VALUE_NONE
|
if ( ttValue != VALUE_NONE
|
||||||
|
@ -753,11 +752,10 @@ namespace {
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ss->staticEval = eval = evaluate(pos, &complexity);
|
ss->staticEval = eval = evaluate(pos, &complexity);
|
||||||
thisThread->complexityAverage.update(complexity);
|
|
||||||
|
|
||||||
// Save static evaluation into transposition table
|
// Save static evaluation into transposition table
|
||||||
tte->save(posKey, VALUE_NONE, ss->ttPv, BOUND_NONE, DEPTH_NONE, MOVE_NONE, eval);
|
tte->save(posKey, VALUE_NONE, ss->ttPv, BOUND_NONE, DEPTH_NONE, MOVE_NONE, eval);
|
||||||
}
|
}
|
||||||
|
thisThread->complexityAverage.update(complexity);
|
||||||
|
|
||||||
// Use static evaluation difference to improve quiet move ordering (~4 Elo)
|
// Use static evaluation difference to improve quiet move ordering (~4 Elo)
|
||||||
if (is_ok((ss-1)->currentMove) && !(ss-1)->inCheck && !priorCapture)
|
if (is_ok((ss-1)->currentMove) && !(ss-1)->inCheck && !priorCapture)
|
||||||
|
|
Loading…
Add table
Reference in a new issue