Move time_prep() from uct/uct.c to time_stop_conditions() of timeinfo.*
commit12fe677d9a3dbc81a4bca8ae9d0111f906e3aab8
authorPetr Baudis <pasky@ucw.cz>
Sat, 6 Feb 2010 16:26:17 +0000 (6 17:26 +0100)
committerPetr Baudis <pasky@ucw.cz>
Sat, 6 Feb 2010 16:26:17 +0000 (6 17:26 +0100)
tree90f48b44293328732d4531d89493972fd3ccba15
parent21ef0de592da984f2664494d9cd0da304d7fae12
Move time_prep() from uct/uct.c to time_stop_conditions() of timeinfo.*

This way, all the timeinfo setup/decisions code is at a single place and
abstracted out of a particular engine.

I think that this way, we might do also some cleanups not to forcibly
convert TT_TOTAL to TT_MOVE but instead do the conversion only in
time_stop_conditions(). But that's not high-priority.
timeinfo.c
timeinfo.h
uct/uct.c