From b7c7fd260f6c698cb48b7100501d9da8fa375796 Mon Sep 17 00:00:00 2001 From: Branden J Brown Date: Sat, 20 Jan 2024 23:03:34 -0600 Subject: [PATCH] fix initialization --- game/game.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/game.go b/game/game.go index a022c5c..6c8b0f1 100644 --- a/game/game.go +++ b/game/game.go @@ -25,6 +25,7 @@ func NewGame() *Game { func (g *Game) StartRound() { g.PP[0].StartRound() g.PP[1].StartRound() + g.Round++ } func (g *Game) StartGroup() { @@ -42,6 +43,7 @@ func (g *Game) StartGroup() { g.Shells = g.ShellArray[:shells] ShuffleSlice(&g.RNG, g.Shells) g.Group++ + g.Turn = 0 } // CurrentPlayer gets the index of the current player, either 0 or 1.