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

Separate threads for search and uci loop #16

Merged
merged 2 commits into from
Sep 16, 2019

Conversation

TerjeKir
Copy link
Owner

The UCI loop now makes a new thread to perform the search after seeing a go command. This frees the search from the responsibility of detecting input during the search as the UCI loop is still running. Should be a slight speed-up as well as a bit cleaner, especially getting rid of the code in misc.c.

Also changed behaviour upon receiving 'ucinewgame' command: Since a 'ucinewgame' command should always be followed by a 'position' command, there is no need to set the position to the starting position. However the hash table should be reset, as otherwise the engine will have a slight edge when playing a second game in a row by having the hash table filled with potentially useful information.

@TerjeKir TerjeKir merged commit b5d29d0 into master Sep 16, 2019
@TerjeKir TerjeKir deleted the Separate-threads-for-search-and-uci-loop branch September 16, 2019 21:16
@TerjeKir TerjeKir mentioned this pull request Sep 17, 2019
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.

None yet

1 participant