mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-16 15:16:25 +08:00
Improve time managment
If we need some more and we are in time advantage take it. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -123,7 +123,8 @@ void benchmark(const std::string& commandLine) {
|
||||
for (it = positions.begin(); it != positions.end(); ++it)
|
||||
{
|
||||
Move moves[1] = {MOVE_NONE};
|
||||
int dummy[2] = {0, 0};
|
||||
Position pos(*it);
|
||||
think(pos, true, false, 0, 0, 0, 0, 0, 0, secsPerPos * 1000, moves);
|
||||
think(pos, true, false, 0, dummy, dummy, 0, 0, 0, secsPerPos * 1000, moves);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user