mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-18 16:16:23 +08:00
Pass also opponent time to think()
This patch modifies think() signature to accept also opponent time. This is needed for future changes to time managment. Still no functional change. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
@@ -134,6 +134,7 @@ namespace {
|
||||
TT.clear();
|
||||
Position::init_piece_square_tables();
|
||||
RootPosition.from_fen(StartPosition);
|
||||
|
||||
}
|
||||
else if (token == "isready")
|
||||
std::cout << "readyok" << std::endl;
|
||||
@@ -319,8 +320,7 @@ namespace {
|
||||
if (moveTime)
|
||||
infinite = true; // HACK
|
||||
|
||||
think(RootPosition, infinite, ponder, time[RootPosition.side_to_move()],
|
||||
inc[RootPosition.side_to_move()], movesToGo, depth, nodes, moveTime,
|
||||
searchMoves);
|
||||
think(RootPosition, infinite, ponder, RootPosition.side_to_move(), time,
|
||||
inc, movesToGo, depth, nodes, moveTime, searchMoves);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user