Adding comment so I won't forget my plan with this branch.
This commit is contained in:
parent
6cbd7d37aa
commit
71ca61f047
13
main.go
13
main.go
@ -37,6 +37,19 @@ func main() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func registerForRandomGame(c *gin.Context) {
|
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())
|
player := server.NewPlayer(uuid.New())
|
||||||
|
|
||||||
lobby := server.GetLobby()
|
lobby := server.GetLobby()
|
||||||
|
Loading…
Reference in New Issue
Block a user