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

Scoring overhaul #163

Closed
wants to merge 25 commits into from
Closed

Scoring overhaul #163

wants to merge 25 commits into from

Conversation

anoek
Copy link
Member

@anoek anoek commented Jun 10, 2024

This patch updates the stone removal phase in a number of ways:

  • Switches our scorer to use https://github.com/lightvector/goscorer which does automatic dame detection and proper seki scoring for Japanese rules
  • Adds support for highlighting locations that need sealing before proper scoring can be done
  • Alters the toggling of dead stones in the stone removal phase to make it less error prone
  • Removes the ability to manually flag locations as dame. Moving forward if there is a problem with dame detection, it's considered a bug.
  • Adds a red X to removed stones for clarity

image

  • Adds support for marking scores and dead stones in analysis and reviews

image

image

anoek added 25 commits June 3, 2024 20:06
Fixes some errors with node 22
phase

Also draw the red x's over the stones like the stone removal phase
GoEngine and ScoreEstimator had essentially the same logic.

This also necessitated some refactoring of our "hook" system, now better
named "callbacks" to be less confusing with react hooks.
@anoek anoek closed this Jun 14, 2024
@anoek anoek deleted the scoring branch June 21, 2024 12:21
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