For example, in deeppov
Code: Select all
int divider = 50;
allocatedTimeMiliSec = winc+(wtime - wtime/divider)/divider;
In stockfish, the MoveHorizon=50 variable is used the same way.
In Weini I was trying to plan time in suddendeath for a 65 moves game but always assuming at least 10 moves remains. This doesn't seem to be a good idea ...
Code: Select all
remainingMoveUntilNextTC = std::max(10, 65 - position.Moves()); // always be able to play 10 more moves ...