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;
|
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
|
||||||
|
|
Reference in a new issue