Commit 742ece9b by BellCodeEditor

save project

parent 0729f9a8
Showing with 4 additions and 0 deletions
......@@ -45,6 +45,10 @@ while True:
for i in position[:-1]:
if i==(x,y):
exit()
if x>630 or x<0 or y>450 or y<0:
exit()
else:
# 设置贪吃蛇的头部坐标
if setheading == "right":
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment