Commit ddc358f6 by BellCodeEditor

save project

parent c4ec5b47
Showing with 6 additions and 3 deletions
...@@ -2,5 +2,9 @@ import random ...@@ -2,5 +2,9 @@ import random
apple_x=360 apple_x=360
apple_y=300 apple_y=300
if x ==apple_x and y==apple_y: if x ==apple_x and y==apple_y:
apple_x=random.randint(0,660) num1=random.randint(1,22)
apple_y=random.randint(0,480) num2=random.randint(1,16)
\ No newline at end of file apple_x=30*num1-30
apple3_y=30*num2-30
else:
position.pop(0)
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