Commit 0a8f1a01 by BellCodeEditor

save project

parent babe6e25
Showing with 2 additions and 2 deletions
...@@ -56,8 +56,8 @@ while True: ...@@ -56,8 +56,8 @@ 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:
name1=random.randint(0,22) name1=random.randint(1,22)
name2=random.randint(0,16) name2=random.randint(1,16)
apple_x=name1*30-30 apple_x=name1*30-30
apple_y=name2*30-30 apple_y=name2*30-30
else: else:
......
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