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

Cleanup search #77

Merged
merged 2 commits into from
Aug 31, 2023
Merged

Cleanup search #77

merged 2 commits into from
Aug 31, 2023

Conversation

dmeybohm
Copy link
Owner

@dmeybohm dmeybohm commented Aug 31, 2023

  • Make the search() recursive method return the score instead of storing it on the object, to make the search process easier to
    understand.
  • Make the BoardCode converstion to a string consistent with the representation sent to a std::ostream

- Default initialize `SearchResult` object and remove init func
- Make `search()` return the move score and move some variables tracking
state between recursive function calls to a `SearchResult` on the SearchImpl class.
- Rename `synthesizeResult` to `getBestResult()` since the result is copied
and not synthesized anymore.
@dmeybohm dmeybohm merged commit 1d84851 into main Aug 31, 2023
1 check passed
@dmeybohm dmeybohm deleted the cleanup-search branch August 31, 2023 11:43
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