Bug: Server created two similar games after players passed the ready check
Closed this issue · 2 comments
gereon77 commented
panwauu commented
Hi Gereon,
This is a known problem which happens from time to time (#72).
I was not able to reproduce it or to find the error in the code.
I would be very happy for a second opinion!
Here is the implementation of the game creation:
tac-with-bug/server/src/services/game.ts
Line 104 in 9c7680f
Strangely, I need a auxiliary function to change the order of the players I guess:
tac-with-bug/server/src/socket/waiting.ts
Line 174 in d24bdac
Here the game is created if the last players sets the state to ready:
tac-with-bug/server/src/socket/waiting.ts
Line 108 in d24bdac
panwauu commented
Close as stale