Pay attention to hint move in walking pobder PV
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Jun 2019 09:58:37 +0000 (11:58 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 3 Jun 2019 09:58:37 +0000 (11:58 +0200)
commit5f72964c8bb375139f94d2b03f9d084a6637c095
tree575178b51deabb2736d19d11d94f427fa45c99f5
parentfc01bc54eb7362ce10e6535d7937973f9d069785
Pay attention to hint move in walking pobder PV

When requesting to walk the PV of a pondering engine, it would only
work if that engine had printed the ponder move (in parentheses) as
first move of the PV. But the recommended mode in CECP would have
provided the ponder move in a 'Hint:' command, and start the PV after it.
So that the PV would always start with an invalid move (for the other
player). Backing up to the previous position such as would have to be
done when walking an old PV after the engine has moved, does not solve
this; we have to go one position forward rather than backward. Now
we first try to put the hint move before the PV, if the engine supplying
the PV provided the hint, and pondering is on, before we try to back up.
backend.c