first player can draw

This commit is contained in:
stryan 2021-07-25 22:16:50 -04:00
parent 00bd3539b0
commit 8a20d97ad6

View File

@ -167,12 +167,9 @@ func (g *Game) PlayerStateAct(id int, cmd string) *GameView {
if g.Status == StatusReady { //first turn if g.Status == StatusReady { //first turn
g.Status = StatusPlaying g.Status = StatusPlaying
g.CurrentTurn = id g.CurrentTurn = id
g.CanDraw = false }
g.HasDrawn = true
} else {
g.CanDraw = true g.CanDraw = true
g.HasDrawn = false g.HasDrawn = false
}
if id != g.CurrentTurn { if id != g.CurrentTurn {
return nil return nil
} }