Improve calculation of thinking time in sudden-death games
authorH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 12:30:14 +0000 (13:30 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 7 Mar 2014 12:30:14 +0000 (13:30 +0100)
commit0733495e0c47ce7590d799cafa9d1d1f9906ef41
tree8af0b25de272474dad6151684a09bee7fb879eb0
parentda2a684903fc7a96d47b43dc2feeecde53bd1aa6
Improve calculation of thinking time in sudden-death games

GNU Chess seems to assume a session length of 50 moves in Fischer time
controls, and would be taken by surprise by the fact that it would not
receive new time after that. This is pretty fatal in sudden-death game,
when there is no time increment from which it could do the remaining
moves. So for sudden-death games in XBoard mode it now calculates the
thinking time as if there are at least still 30 moves to go.
gnushogi/rawdsp.c
gnushogi/tcontrl.c