steps!
This commit is contained in:
parent
bcebf52552
commit
d3bfc7d913
1 changed files with 7 additions and 0 deletions
|
@ -203,17 +203,24 @@ bt_move_t bt_t::get_mcts_move(double max_time) {
|
|||
tree->nb_simulation = 0;
|
||||
tree->wins = 0;
|
||||
|
||||
// Copy board
|
||||
bt_t b_copy = *this;
|
||||
|
||||
// MCTS
|
||||
auto now = std::chrono::steady_clock::now();
|
||||
std::chrono::duration<double> elapsed{};
|
||||
while (elapsed.count() < max_time) {
|
||||
// Selection
|
||||
std::cerr << "selection\n";
|
||||
|
||||
// Expansion
|
||||
std::cerr << "expansion\n";
|
||||
|
||||
// Simulation
|
||||
std::cerr << "simulation\n";
|
||||
|
||||
// Update
|
||||
std::cerr << "update\n";
|
||||
|
||||
// Time constraint
|
||||
elapsed = std::chrono::steady_clock::now() - now;
|
||||
|
|
Reference in a new issue