Skip to content

Commit

Permalink
fix: reset the plays
Browse files Browse the repository at this point in the history
  • Loading branch information
djpiper28 committed Aug 30, 2024
1 parent 9851c1e commit 5cf368b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/gameLogic/game.go
Original file line number Diff line number Diff line change
Expand Up @@ -781,6 +781,10 @@ func (g *Game) nextRound() bool {
g.CurrentRound += 1
g.newCzar()

for _, player := range g.PlayersMap {
player.CurrentPlay = make([]*WhiteCard, 0)
}

err := g.newWhiteCards()
if err != nil {
logger.Logger.Warnf("Cannot get a new white card for the next round %s", err)
Expand Down

0 comments on commit 5cf368b

Please sign in to comment.