From c92f8ddc2386f4fc07df0ec1f96d48d6a6d9b433 Mon Sep 17 00:00:00 2001 From: Steve Date: Fri, 16 Jul 2021 15:53:02 -0400 Subject: [PATCH] first player can't draw --- game.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/game.go b/game.go index 582e9a7..61a89d9 100644 --- a/game.go +++ b/game.go @@ -101,11 +101,12 @@ func (g *Game) PlayerStateAct(id int, cmd string) *Game { g.Status = StatusPlaying g.CurrentTurn = id g.CanDraw = false + } else { + g.CanDraw = true } if id != g.CurrentTurn { return nil } - g.CanDraw = true if id == 1 { for _, v := range g.GameBoard.Sentinal { v.Upkeep(g)