diff --git a/game.go b/game.go index 04af1ff..d0a1880 100644 --- a/game.go +++ b/game.go @@ -275,8 +275,8 @@ func (g *game) run() { log.Printf("Robot %v Wins", p.Robot.Id) log.Printf("game %s: game over", g.id) } - p.reset(g) g.obstacles = GenerateObstacles(5, g.width, g.height) + p.reset(g) } payload.Reset = true } else {