mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 00:33:09 +00:00
Fix TB PV extension and MultiPV
in the case of MultiPV, the first move of the Nth multiPV could actually turn a winning position in a losing one, so don't attempt to correct it. Instead, always perform the first move without correction. Fixes #5505 Closes https://github.com/official-stockfish/Stockfish/pull/5506 No functional change
This commit is contained in:
parent
1fb4dc2e0f
commit
e57fba7fc9
1 changed files with 5 additions and 1 deletions
|
@ -1948,8 +1948,12 @@ void syzygy_extend_pv(const OptionsMap& options,
|
||||||
|
|
||||||
std::list<StateInfo> sts;
|
std::list<StateInfo> sts;
|
||||||
|
|
||||||
|
// Step 0, do the rootMove, no correction allowed, as needed for MultiPV in TB.
|
||||||
|
auto& stRoot = sts.emplace_back();
|
||||||
|
pos.do_move(rootMove.pv[0], stRoot);
|
||||||
|
int ply = 1;
|
||||||
|
|
||||||
// Step 1, walk the PV to the last position in TB with correct decisive score
|
// Step 1, walk the PV to the last position in TB with correct decisive score
|
||||||
int ply = 0;
|
|
||||||
while (size_t(ply) < rootMove.pv.size())
|
while (size_t(ply) < rootMove.pv.size())
|
||||||
{
|
{
|
||||||
Move& pvMove = rootMove.pv[ply];
|
Move& pvMove = rootMove.pv[ply];
|
||||||
|
|
Loading…
Add table
Reference in a new issue