Skip to content

Commit

Permalink
Always use playouts or visits if no dynamic time control or constant …
Browse files Browse the repository at this point in the history
…move time set
  • Loading branch information
jhellis3 authored and killerducky committed Apr 21, 2018
1 parent e03cddd commit 6ef0d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UCTSearch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ bool UCTSearch::is_running() const {
int UCTSearch::est_playouts_left() const {
auto elapsed_millis = now() - m_start_time;
auto playouts = m_playouts.load();
if (Limits.use_time_management() && !Limits.dynamic_controls_set()) {
if (!Limits.dynamic_controls_set() && !Limits.movetime) {
// No time control, use playouts or visits.
const auto playouts_left =
std::max(0, std::min(m_maxplayouts - playouts,
Expand Down

0 comments on commit 6ef0d30

Please sign in to comment.