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

feat: add scores #2

Closed
wants to merge 2 commits into from
Closed

feat: add scores #2

wants to merge 2 commits into from

Conversation

kiprasmel
Copy link

depends on: #1

refactored to use c.o as connection.other instead of keeping track of
separate write methods and scores, since using references to keep scores
avoids the need to update it in 2 places, which automatically avoids bugs

thanks for this, it was fun to play with:D

I added auto restart because it seemed a little annoying for both
clients to reconnect after each game. But you don't have to merge this -
it can stay as a reference for the curious (I assume you'd like to keep
the byte size small:D)

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
depends on: #1

refactored to use `c.o` as connection.other instead of keeping track of
separate write methods and scores, since using references to keep scores
avoids the need to update it in 2 places, which automatically avoids bugs

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
@kiprasmel kiprasmel closed this by deleting the head repository Feb 13, 2024
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