Commit 46045840 by BellCodeEditor

save project

parent dad6f132
Showing with 2 additions and 2 deletions
...@@ -56,9 +56,9 @@ while True: ...@@ -56,9 +56,9 @@ while True:
y += 30 y += 30
position.append((x, y)) position.append((x, y))
if x==apple_x and y==apple_y: if x==apple_x and y==apple_y:
num_x=random.randint(1,21) num_x=random.randint(0,21)
apple_x=num_x*30 apple_x=num_x*30
num_y=random.randint(1,15) num_y=random.randint(0,15)
apple_y=num_y*30 apple_y=num_y*30
......
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