I am trying to develop a game application in which each player can join a room via a unique code.
My question is first of all to know if this is possible and if so, how to build the process. I started by generating a series of random numbers as soon as a nickname was created by one of the players and storing it in a backend part via Rest API.
Then, the players enter the generated number and I use a formula to display only the players with this room code to then validate and create the team.
I have not yet found which formula exactly to define but I would like your opinion to know if I am on the wrong track to achieve my goal.
I will try to give more information if I have not been clear enough.
Thanks for your help !
David
GENERATE_UUID() gives unique numbers. The team leader can sign up and choose to create a team, enter a public name for the team, and generate the private code to send to the team members. The members can sign up and choose to join a team with the code. They don’t have to enter the name of the team, the code will identify it. The leader could regenerate the code, if it was leaked.