From 25fa42aa2118deb283b3dc0ca04e39890ab1efd9 Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Wed, 4 Aug 2021 20:00:41 +0800
Subject: [PATCH] save project

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

diff --git a/snake.py b/snake.py
index ec65c58..0282889 100644
--- a/snake.py
+++ b/snake.py
@@ -43,8 +43,10 @@ while True:
                 setheading = 'down'
                 snake_head = down
             if ax==x and ay==y:
-                ax=random.randint(0,660)
-                ay=random.randint(0,480)
+                ax=random.randint(0,21)
+                ay=random.randint(0,15)
+                ax=ax*30
+                ay=ay*30
     # 设置贪吃蛇的头部坐标
     if setheading == "right":
         x += 30
--
libgit2 0.25.0