Defer book faking input move until ping balance
authorH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 28 Jul 2016 12:24:27 +0000 (14:24 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Thu, 28 Jul 2016 12:24:27 +0000 (14:24 +0200)
commit5297eb5a91178cf9a403da89709a4661efde0210
tree39026fe8610c772136ff19197845c76249ff0293
parent94a0acbcf696ce1aee4fb48537819c6c24d16c88
Defer book faking input move until ping balance

The use of ping after editing a position had broken the book handling:
'go' would be sent in the same batch of commands as this 'ping', so that
in case of a book hit the book move selected on behalf of the engine
would be fed back to XBoard before the engine had the opportunity to
restore the ping balanceby sending 'pong'. Now the book move is fed
through ScheduleDelayedEvent(DeferredBookMove) rather than instantly,
when a MachineWhite/BlackEvent sets the engine playing.
backend.c