diff --git a/game.go b/game.go index b57d515..098f3c8 100644 --- a/game.go +++ b/game.go @@ -169,22 +169,8 @@ func quit(game *Game) { } func (game *Game) randPos() Position { - //var safe bool = false var pos Position - // for !safe { - // x := rand.Intn(80) - // y := rand.Intn(24) - - // if x == 0 || x == 79 || y == 0 || y == 23 { - // safe = false - // } else { - // pos.x = x - // pos.y = y - // safe = true - // } - // } - x := 1 + rand.Intn(77) y := 1 + rand.Intn(22)