Commit 95a77bd9 by BellCodeEditor

save project

parent bd85c12c
Showing with 6 additions and 0 deletions
...@@ -64,6 +64,12 @@ while True: ...@@ -64,6 +64,12 @@ while True:
score += 1 score += 1
apple_x = 30*n11111-30 apple_x = 30*n11111-30
apple_y = 30*n11111-30 apple_y = 30*n11111-30
if apple_x < 0 or apple_x > 630 or apple_y < 0 or apple_y > 450:
n11111 = random.randint(1,22)
n22222 = random.randint(1,16)
score += 1
apple_x = 30*n11111-30
apple_y = 30*n11111-30
else: else:
position.pop(0) position.pop(0)
if x < 0 or x > 630 or y < 0 or y > 450: if x < 0 or x > 630 or y < 0 or y > 450:
......
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