Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Time Update #352

Merged
merged 4 commits into from
Apr 18, 2018
Merged

Time Update #352

merged 4 commits into from
Apr 18, 2018

Conversation

jhellis3
Copy link
Contributor

Simplifies TM, implements max time, increases Slow Mover to 111 (temporary measure).

@@ -499,6 +500,7 @@ int UCTSearch::get_search_time() {
bool UCTSearch::should_halt_search() {
if (uci_stop) return true;
auto elapsed_millis = now() - m_start_time;
if (elapsed_millis > m_max_time) return true;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we only want to check this if target_time < 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, perhaps move to || along with m_target_time?

@glinscott glinscott changed the base branch from master to next April 18, 2018 04:49
@glinscott glinscott merged commit 30a8416 into glinscott:next Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants