Skip to content

Commit

Permalink
Merge pull request #24 from daithihearn/minor-fixes
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
daithihearn authored Jan 28, 2024
2 parents f24f32a + e65796f commit 5f53893
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/game/game-methods.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 3 additions & 3 deletions pkg/game/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:"-"`
}

Expand Down

0 comments on commit 5f53893

Please sign in to comment.