diff --git a/snake.py b/snake.py index 2fcb960..7389863 100644 --- a/snake.py +++ b/snake.py @@ -59,7 +59,7 @@ while True: position.append((x, y)) position.pop(0) - if x = apple_x and y = apple_y: + if x == apple_x and y == apple_y: apple_x = random.randint(0,660) apple_y = random.randint(0,480)