Add bot to play against.

This commit is contained in:
Greyson Parrelli
2026-07-23 15:58:12 -04:00
parent 3825dbacec
commit db1a6ef290
23 changed files with 1852 additions and 23 deletions
+2
View File
@@ -10,6 +10,7 @@ type PlayerView struct {
Trophies int `json:"trophies"`
Ready bool `json:"ready"`
Connected bool `json:"connected"`
IsBot bool `json:"isBot,omitempty"`
DeckSize int `json:"deckSize"`
PetCount int `json:"petCount"`
Deck []Card `json:"deck,omitempty"` // self only
@@ -70,6 +71,7 @@ func (g *Game) ViewFor(playerID string) View {
Trophies: p.Trophies,
Ready: p.Ready,
Connected: p.Connected,
IsBot: p.IsBot,
DeckSize: len(p.Deck),
PetCount: p.PetCount(),
}