From b35608f313c3f2e99669df3229f878465a7446b1 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 23 Jul 2022 20:02:14 +0800 Subject: [PATCH] auto save --- snake.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snake.py b/snake.py index 094b2e4..8dc44cc 100644 --- a/snake.py +++ b/snake.py @@ -56,8 +56,8 @@ while True: position.append((x, y)) if x==apple_x and y==apple_y: score=score+10 - num1=random.randint(0,660) - num2=random.randint(0,480) + num1=random.randint(1,22) + num2=random.randint(1,16) apple_x=30*num1-30 apple_y=30*num2-30 else: -- libgit2 0.25.0