fix warning

This commit is contained in:
Mylloon 2023-03-29 16:37:56 +02:00
parent 9e2b7d8cc8
commit ae7c5f2093
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -204,9 +204,19 @@ bt_move_t bt_t::get_mcts_move(double max_time) {
tree->wins = 0; tree->wins = 0;
// MCTS // MCTS
auto delta = std::chrono::duration<double>(); auto now = std::chrono::steady_clock::now();
while (delta.count() < max_time) { std::chrono::duration<double> elapsed{};
std::cerr << delta.count() << "\n"; while (elapsed.count() < max_time) {
// Selection
// Expansion
// Simulation
// Update
// Time constraint
elapsed = std::chrono::steady_clock::now() - now;
} }
// Select best move // Select best move