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:
Marco Costalba
2008-09-18 10:31:01 +01:00
parent 4c5eaeb363
commit d583176baf
4 changed files with 23 additions and 18 deletions

View File

@@ -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);
}
}