Commit 257faf40 by BellCodeEditor

save project

parent 62a15016
Showing with 2 additions and 0 deletions
...@@ -53,6 +53,8 @@ while True: ...@@ -53,6 +53,8 @@ while True:
y -= 30 y -= 30
else: else:
y += 30 y += 30
if x<0 or x>630 or y<0 or y>450:
exit()
position.append((x, y)) position.append((x, y))
if x==apple_x and y==apple_y: if x==apple_x and y==apple_y:
score=score+1 score=score+1
......
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