You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if a user has any match in progress and he tries to create a new random match then don't let him create a new random match instead
rejoin him with that inprogress match.
this will ensure that there exists no two matches in games array(inside gameManager class) in which same player is playing simultaneously more than one matches (i.e. no 2 matches in games[ ] will have any common whitePlayerId or blackPlayerId)
The text was updated successfully, but these errors were encountered:
asutosh-147
changed the title
Rejoin a user in IN_PROGRESS match don't let them create new one!
Rejoin a user in IN_PROGRESS match don't let them create new one! And Fix Game not getting removed
May 21, 2024
if a user has any match in progress and he tries to create a new random match then don't let him create a new random match instead
rejoin him with that inprogress match.
this will ensure that there exists no two matches in games array(inside gameManager class) in which same player is playing simultaneously more than one matches (i.e. no 2 matches in games[ ] will have any common whitePlayerId or blackPlayerId)
The text was updated successfully, but these errors were encountered: