Adding comment so I won't forget my plan with this branch.

This commit is contained in:
Marco 2023-05-30 23:36:22 +02:00
parent 6cbd7d37aa
commit 71ca61f047
1 changed files with 13 additions and 0 deletions

13
main.go
View File

@ -37,6 +37,19 @@ func main() {
}
func registerForRandomGame(c *gin.Context) {
/*
What should be done:
1. Register player
2. Check if there is a game open that lacks one player
3. Fill open game, then respond with player id and game id.
OR
1. Register player
2. If there is no open game, open a game and wait for a second player to join
3. Only after a second player joins, respond with player id and game id.
*/
player := server.NewPlayer(uuid.New())
lobby := server.GetLobby()