]> git.sesse.net Git - stockfish/commit - src/evaluate.cpp
Fix rootComplexity calculation
authorJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 9 Apr 2023 07:18:29 +0000 (09:18 +0200)
committerJoost VandeVondele <Joost.VandeVondele@gmail.com>
Sun, 9 Apr 2023 13:19:49 +0000 (15:19 +0200)
commitb36d39de3d61b8f31c11d85233631aafaf760ee1
tree1afcd188fe48bff86582cc3c2c0285dfba021c31
parent59f2085469a7dd96146905a5d8d0c1a5d987187d
Fix rootComplexity calculation

The calculation of rootComplexity can't call eval when in check.
Doing so triggers an assert if compiled in debug mode when
the rootpos is evaluated using classical eval.

Fixes https://github.com/official-stockfish/Stockfish/issues/4512

Passed STC:
https://tests.stockfishchess.org/tests/view/6432697431feee5c6d306876
LLR: 2.93 (-2.94,2.94) <-1.75,0.25>
Total: 41096 W: 11017 L: 10815 D: 19264
Ptnml(0-2): 113, 4172, 11780, 4366, 117

Running LTC:
https://tests.stockfishchess.org/tests/view/6432974d31feee5c6d306fc0
LLR: 1.76 (-2.94,2.94) <-1.75,0.25>
Total: 73200 W: 19792 L: 19728 D: 33680
Ptnml(0-2): 24, 6659, 23182, 6699, 36

closes https://github.com/official-stockfish/Stockfish/pull/4515

No functional change
src/evaluate.cpp
src/search.cpp
src/thread.cpp