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

🐛 Don't search with fixed depth when cutechess provides 0s to move #654

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

eduherminio
Copy link
Member

In case the time left (wtime, btime) is 0, default to 50ms base time instead of doing default fixed depth of 5.

If both times are zero, we have no way of knowing with the current engine structure if a time was provided, so we'll log the warning and search with default fixed depth

It's a concern that it uses more time than the increment, but I'll tackle that in a separated PR

15:29:19 [DEBUG] | [GUI]        go wtime 0 btime -2 winc 20 binc 20
15:29:19 [INFO] | Time to move: 0.022s

@eduherminio eduherminio marked this pull request as ready for review February 12, 2024 14:36
@eduherminio eduherminio changed the title 🐛 Don't search with fixed depth when cutechess provides 0s to move. 🐛 Don't search with fixed depth when cutechess provides 0s to move Feb 12, 2024
@eduherminio eduherminio merged commit 6361634 into main Feb 12, 2024
28 checks passed
@eduherminio eduherminio deleted the bugfix/0-time-left branch February 12, 2024 14:36
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.

1 participant