Closed thgcode closed 7 years ago
I wanted to create another pull request for the public games commit (issue #8), but it ended becoming part of this one. Feel free to choose wat you want to merge or suggest something, and sorry for the bad formatting of the code. I tried to follow it but I'm not so sure if I did things right.
Yes, the [:] were missing in the for loops!
Here is the commit message. I've not wrote it in the title because it was truncated. bug fixed: The server wasn't removing the clients from the game if they disconnected in the "waiting for the game to start" state. Bug fixed: The server wasn't destroying the game if the organizer disconnected from it abruptly. Bug fixed: In some situations, the server wasn't removing the clients properly if the organizer cancelled the game.