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

Updated game sound logic for case when game ends in a Tie #2958

Closed
wants to merge 1 commit into from

Conversation

mister-dl
Copy link
Contributor

Fixes #2791

Proposed Changes

-Add a case when game ends in a tie (returns 0 instead of a player number)
-updates winner interface prop with tie as an option

Concerns

  • should winner interface prop be number or string? Where would it be set to be a string? I only saw numbers returned (for player id) but not sure when a string is set.
  • I didn't see any jest tests for this. If we don't need it its fine, just want to make sure i'm not missing it somewhere.

@anoek
Copy link
Member

anoek commented Feb 15, 2025

Since this change is in https://github.com/online-go/goban/ , you'll need to fork that repo and push up a pull request over there, sorry for the trouble.

@mister-dl
Copy link
Contributor Author

makes sense, not a problem!

@mister-dl
Copy link
Contributor Author

PR is actually : online-go/goban#183

@mister-dl mister-dl closed this Feb 15, 2025
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.

Incorrect "You have won!" announcement for a tied game
2 participants