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

Score estimator more cleanup #137

Merged
merged 2 commits into from
Nov 9, 2023

Conversation

benjaminpjones
Copy link
Contributor

A few more cleanup opportunities that became apparent after spending more time with the ScoreEstimator code.

This looks to be a holdover from when this code was copied from
GoEngine.  It no longer applies, and this code is hit every time
we score a group of territory.
@benjaminpjones benjaminpjones marked this pull request as draft November 8, 2023 14:57
I also needed to update a test which was pointed at the wrong variable.
In the future, we can probably get rid of some of the mocking in the test
that makes it brittle.
@benjaminpjones
Copy link
Contributor Author

benjaminpjones commented Nov 9, 2023

Thank goodness for static analysis!

I removed the commit to get rid of ScoreEstimator.territory. I still believe this member can be removed (see fbbb8ed), but since the consuming code is in GobanCanvas, I would like to add more test coverage before removing it.

@benjaminpjones benjaminpjones marked this pull request as ready for review November 9, 2023 00:02
@anoek anoek merged commit 1fb76ef into online-go:main Nov 9, 2023
1 check passed
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