diff --git a/pkg/game/game-methods.go b/pkg/game/game-methods.go index 32b13e8..a92fc1d 100644 --- a/pkg/game/game-methods.go +++ b/pkg/game/game-methods.go @@ -555,7 +555,7 @@ func (g *Game) Play(id string, card CardName) error { } // Remove the card from the player's hand - var cards []CardName + cards := make([]CardName, 0) for _, c := range state.Cards { if c != card { cards = append(cards, c) diff --git a/pkg/game/game.go b/pkg/game/game.go index 258c917..b7acd77 100644 --- a/pkg/game/game.go +++ b/pkg/game/game.go @@ -75,9 +75,9 @@ type Game struct { Name string `bson:"name" json:"name"` Status Status `bson:"status" json:"status"` Players []Player `bson:"players" json:"players"` - Dummy []CardName `bson:"dummy" json:"dummy"` - CurrentRound Round `bson:"currentRound" json:"currentRound"` - Completed []Round `bson:"completedRounds" json:"completedRounds"` + Dummy []CardName `bson:"dummy" json:"-"` + CurrentRound Round `bson:"currentRound" json:"-"` + Completed []Round `bson:"completedRounds" json:"-"` Deck []CardName `bson:"deck" json:"-"` }