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

Commits on Jul 10, 2021

  1. feat: auto restart

    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>
    kiprasmel committed Jul 10, 2021
    Configuration menu
    Copy the full SHA
    34bc481 View commit details
    Browse the repository at this point in the history
  2. feat: add scores

    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 committed Jul 10, 2021
    Configuration menu
    Copy the full SHA
    1670e2e View commit details
    Browse the repository at this point in the history