implement matchmaking lobby

Fixes #2.
This commit is contained in:
2024-01-21 19:53:08 -06:00
parent 935fe8e2e4
commit e95d526266
4 changed files with 130 additions and 3 deletions

View File

@@ -41,6 +41,12 @@ func (p *Player) DTO() serve.Player {
return r
}
// Is returns whether the player has the same ID as other.
// This exists for tests.
func (p *Player) Is(other *Player) bool {
return p.id == other.id
}
type CuffState uint8
const (