Schema of a Unique Rooms App

Hi everyone,

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 !

1 Like