]> git.sesse.net Git - stockfish/commit
Added a new function build_pv(), which extends a PV by walking
authorTord Romstad <tord@glaurungchess.com>
Thu, 6 Aug 2009 11:27:49 +0000 (13:27 +0200)
committerTord Romstad <tord@glaurungchess.com>
Thu, 6 Aug 2009 11:27:49 +0000 (13:27 +0200)
commitda854fe83a64b2181c372f7b51f8b2190f67840d
tree51dce519a47e3c6015490989075ed3951451e357
parenta1096e55cfccd9700602287a15ac4051746db953
Added a new function build_pv(), which extends a PV by walking
down the transposition table.

When the search was stopped before a fail high at the root was
resolved, Stockfish would often print a very short PV, sometimes
consisting of just a single move. This was not only a little
user-unfriendly, but also harmed the strength a little in
ponder-on games: Single-move PVs mean that there is no ponder
move to search.

It is perhaps worth considering to remove the pv[][] array
entirely, and always build the entire PV from the transposition
table. This would simplify the source code somewhat and probably
make the program infinitesimally faster, at the expense of
sometimes getting shorter PVs or PVs with rubbish moves near
the end.
src/search.cpp