diff --git a/lobby/lobby.go b/lobby/lobby.go index 7fe5f4b..93a70b5 100644 --- a/lobby/lobby.go +++ b/lobby/lobby.go @@ -3,8 +3,6 @@ package lobby import ( "sync" - "github.com/google/uuid" - "git.sunturtle.xyz/studio/shotgun/game" "git.sunturtle.xyz/studio/shotgun/player" "git.sunturtle.xyz/studio/shotgun/serve" @@ -35,8 +33,7 @@ func (l *Lobby) Game(id GameID) *game.Game { // Start begins a new game in the lobby. // The caller must be able to distinguish the dealer's and challenger's conns // in order to provide correct game start DTOs to each. -func (l *Lobby) Start(dealer, challenger player.ID) GameID { - id := uuid.New() +func (l *Lobby) Start(id GameID, dealer, challenger player.ID) GameID { g := game.New(dealer, challenger) l.mu.Lock() defer l.mu.Unlock()