fix warning
This commit is contained in:
parent
9e2b7d8cc8
commit
ae7c5f2093
1 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
Reference in a new issue