From d2f75ae50247c8dbe8fff338066658134a8043af Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Tue, 1 Nov 2022 17:07:09 +0100 Subject: Minor changes --- snake.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'snake.py') diff --git a/snake.py b/snake.py index 0597808..b2c8226 100755 --- a/snake.py +++ b/snake.py @@ -168,14 +168,3 @@ class Snake: pygame.display.flip() 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