diff --git a/snake.py b/snake.py index eeda4e2..64f3920 100644 --- a/snake.py +++ b/snake.py @@ -54,8 +54,8 @@ while True: else: y += 30 if x == apple_x and y == apple_y: - apple_x = 30*random.randint(1,22) - apple_y = 30*random.randint(1,16) + apple_x = random.randint(0,660) + apple_y = random.randint(0,480) position.append((x, y)) position.pop(0)