From 956367a27a5b62b024d2ce374a044fbcb5c0cace Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Sat, 31 Dec 2022 17:34:54 +0800
Subject: [PATCH] auto save

---
 snake.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/snake.py b/snake.py
index 54f980a..fcdddad 100644
--- a/snake.py
+++ b/snake.py
@@ -57,8 +57,8 @@ while True:
         y += 30
     position.append((x, y))
     if x == apple_x and y == apple_y:#吃到苹果
-        apple_x = random.randint(0,22*30)
-        apple_y = random.randint(0,16*30)
+        apple_x = random.randint(0,21*30)
+        apple_y = random.randint(0,15*30)
     position.pop(0)
     # 将背景图画上去
     screen.blit(background, (0, 0))
--
libgit2 0.25.0