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;
// MCTS
auto delta = std::chrono::duration<double>();
while (delta.count() < max_time) {
std::cerr << delta.count() << "\n";
auto now = std::chrono::steady_clock::now();
std::chrono::duration<double> elapsed{};
while (elapsed.count() < max_time) {
// Selection
// Expansion
// Simulation
// Update
// Time constraint
elapsed = std::chrono::steady_clock::now() - now;
}
// Select best move