first player can draw
This commit is contained in:
parent
00bd3539b0
commit
8a20d97ad6
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user