From 06a606094073a9ab56a66c63b4263bff2ad3118c Mon Sep 17 00:00:00 2001
From: BellCodeEditor <bellcode_dev@bell.ai>
Date: Mon, 20 Sep 2021 15:00:07 +0800
Subject: [PATCH] save project

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

diff --git a/snake.py b/snake.py
index 2be6543..a33d32f 100644
--- a/snake.py
+++ b/snake.py
@@ -62,6 +62,8 @@ while True:
         scroe+=1
     else:
         position.pop(0)
+    if x<0 or x>630 or y<0 or y>450:
+        exit()
     # 将背景图画上去
     screen.blit(background, (0, 0))
     # 将贪吃蛇的头画上去
--
libgit2 0.25.0