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

Rejoin a user in IN_PROGRESS match don't let them create new one! And Fix Game not getting removed #332

Open
asutosh-147 opened this issue May 21, 2024 · 0 comments

Comments

@asutosh-147
Copy link

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)

@asutosh-147 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant