first player can't draw

This commit is contained in:
stryan 2021-07-16 15:53:02 -04:00
parent 23a991d401
commit c92f8ddc23

View File

@ -101,11 +101,12 @@ func (g *Game) PlayerStateAct(id int, cmd string) *Game {
g.Status = StatusPlaying g.Status = StatusPlaying
g.CurrentTurn = id g.CurrentTurn = id
g.CanDraw = false g.CanDraw = false
} else {
g.CanDraw = true
} }
if id != g.CurrentTurn { if id != g.CurrentTurn {
return nil return nil
} }
g.CanDraw = true
if id == 1 { if id == 1 {
for _, v := range g.GameBoard.Sentinal { for _, v := range g.GameBoard.Sentinal {
v.Upkeep(g) v.Upkeep(g)