]> git.sesse.net Git - stockfish/commit
Correctly track down pv even in fail-high case
authorGuenther Demetz <guenther.demetz@wuerth-phoenix.com>
Mon, 17 Sep 2018 06:42:58 +0000 (08:42 +0200)
committerStéphane Nicolet <cassio@free.fr>
Sun, 14 Oct 2018 18:19:46 +0000 (20:19 +0200)
commitcb0111d3db923ec43b39f47973f7457da2b2e6c0
treef306fa0805a69a170a2f9ecc4f5691cd40173300
parent0370077c375e313cec055c8e52c34f05ae06fdc4
Correctly track down pv even in fail-high case

Currently we update (track up) the pv even in the fail high case.
However most times in such cases the pv in the ply below remains unset
because there we have value == alpha and so finally we see truncated
pv's (=just one move) in fail high cases.
Of course tracking down these pv's (+sending them to the gui) comes at a
certian cost, but no-regression tests passed:

STC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 16300 W: 3556 L: 3424 D: 9320
http://tests.stockfishchess.org/tests/view/5b9b73500ebc592cf275ea92

LTC:
LLR: 2.96 (-2.94,2.94) [-3.00,1.00]
Total: 202411 W: 32734 L: 32897 D: 136780
http://tests.stockfishchess.org/tests/view/5b9baed10ebc592cf275ef6d

N.B.: Digging also into qsearch was tried in another version but seemed
not to pass the tests. This means that we don't always will get a pv
until the very tips.

No functional change
src/search.cpp