Skip to content

Handle Disconnects and Bots Better #1

@notbaab

Description

@notbaab

We switched to names as the keys rather than the ids to solve an issue with games when users are added after bots. Currently we are using the username to uniquely identify the user but on top of that being untrue, it has some issues when people disconnect and reconnect. Attatched is a file that demonstrates that issue.
dissconnect-bug.txt
The result of parsing that is GoodKn1ght ends up with a score of 2 when technically since he disconnected, he only has a score of one.

I think the easiest thing may be to set everyones score to 0 when the client begin message is parsed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions