Take account of multi-session TC while pondering
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 09:47:38 +0000 (10:47 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 10:39:56 +0000 (11:39 +0100)
commit17578788289cee451a7bceff1cda802cc692ffc9
tree6b28b634b217b098a7b1c3329cecb7c7efbae5c0
parentfba3360f72a4da97710e6ef675887a8d2a1a36b2
Take account of multi-session TC while pondering

We now call RenewTimeControl rather than SetTimeControl to calculate
the new TC parameters when a ponder search produces a move after a
ponder hit, to mimic what would happen if the computer thinks in
the main loop. When accepting the ponder move during search we should
be more careful, because calling the SetTimeControl (indirectly) there
would interfere with the 'time' and 'otim' commands received just
before the move, which already include the time for the next session.
So there we only set the number of moves when a new session starts.
This would not take account of multi-session TCs, but in XBoard mode
there shouldn't be any.
gnushogi/commondsp.c