From b3b8478a9cd1799cfa73c864ac994c5d54a78369 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 1 Nov 2022 14:48:41 +0100 Subject: Minor changes --- snake.py | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'snake.py') diff --git a/snake.py b/snake.py index 0a37ae4..e5db997 100755 --- a/snake.py +++ b/snake.py @@ -165,13 +165,3 @@ class Snake: clock.tick(self.fps) return(self.score) - -game=Snake() - -def event_handler(game): - if game.snake[0][0]==10: - game.direction=6 - -for i in range(0,10): - score=game.run() - print("Game ended with "+str(score)) \ No newline at end of file -- cgit v1.2.3