From 0d7a141830804a0e33041b722d256a9018e34d2d Mon Sep 17 00:00:00 2001 From: Sacha Ligthert Date: Mon, 4 Dec 2023 01:27:19 +0100 Subject: [PATCH] Clean up of code. --- game.go | 14 -------------- 1 file changed, 14 deletions(-) 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)