From 5cf368b64d25f6a336cde2339418524a975d1d96 Mon Sep 17 00:00:00 2001 From: Danny Piper Date: Fri, 30 Aug 2024 20:15:47 +0200 Subject: [PATCH] fix: reset the plays --- backend/gameLogic/game.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/backend/gameLogic/game.go b/backend/gameLogic/game.go index 1b9b021..73790ea 100644 --- a/backend/gameLogic/game.go +++ b/backend/gameLogic/game.go @@ -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)