When the player form is submitted, a player is now created in the database and the player_id is stored in the browser's internal memory. Real-time functionality is also implemented, but changes received are not handled.
Open Todos:
Get data when receiving a change
a limit of 4 players must be maintained at all times
after starting the game, everyone must be redirected to the game page
When arriving at the page, check that the local storage: contains a valid player_id for the game_id. THEN scroll down to the lobby.
When the player form is submitted, a player is now created in the database and the player_id is stored in the browser's internal memory. Real-time functionality is also implemented, but changes received are not handled.
Open Todos: