Fix/enable reconnecting to existing games #15

Merged
marco merged 4 commits from simplify-connecting into master 2024-05-21 21:55:42 +00:00
1 changed files with 5 additions and 7 deletions
Showing only changes of commit 34143ed3dc - Show all commits

View File

@ -8,17 +8,15 @@ import (
) )
type Lobby struct { type Lobby struct {
Uuid uuid.UUID Uuid uuid.UUID
Game *chess.Game Game *chess.Game
PlayerJoined chan bool Passphrase utils.Passphrase
Passphrase utils.Passphrase
} }
func NewEmptyLobbyWithUUID(uuid uuid.UUID) *Lobby { func NewEmptyLobbyWithUUID(uuid uuid.UUID) *Lobby {
return &Lobby{ return &Lobby{
Uuid: uuid, Uuid: uuid,
Game: chess.NewGame(), Game: chess.NewGame(),
PlayerJoined: make(chan bool),
} }
} }