first player can't draw
This commit is contained in:
parent
23a991d401
commit
c92f8ddc23
3
game.go
3
game.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user