diff --git a/src/mcts/search.cc b/src/mcts/search.cc index 24c79fb32c..d85d01b4c9 100644 --- a/src/mcts/search.cc +++ b/src/mcts/search.cc @@ -28,6 +28,7 @@ #include "mcts/search.h" #include +#include #include #include #include @@ -35,7 +36,6 @@ #include #include #include -#include #include "mcts/node.h" #include "neural/cache.h" @@ -1549,9 +1549,9 @@ void SearchWorker::DoBackupUpdateSingleNode( // that isn't already the best and the new n is equal or greater to the old // n. if (p == search_->root_node_ && - (old_update_parent_bounds && n->IsTerminal() || - n != search_->current_best_edge_.node() && - search_->current_best_edge_.GetN() <= n->GetN())) { + ((old_update_parent_bounds && n->IsTerminal()) || + (n != search_->current_best_edge_.node() && + search_->current_best_edge_.GetN() <= n->GetN()))) { search_->current_best_edge_ = search_->GetBestChildNoTemperature(search_->root_node_, 0); } diff --git a/src/mcts/stoppers/smooth.cc b/src/mcts/stoppers/smooth.cc index e9a0732447..8405f01e83 100644 --- a/src/mcts/stoppers/smooth.cc +++ b/src/mcts/stoppers/smooth.cc @@ -314,10 +314,6 @@ class SmoothTimeManager : public TimeManager { int64_t last_move_final_nodes_ GUARDED_BY(mutex_) = 0; // Time of the last report, since the beginning of the move. int64_t last_time_ GUARDED_BY(mutex_) = 0; - - // According to the recent calculations, how much time should be spent in - // average per move. - float last_expected_movetime_ms_ GUARDED_BY(mutex_) = 0.0f; }; SmoothStopper::SmoothStopper(int64_t deadline_ms, SmoothTimeManager* manager)