summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
Diffstat (limited to 'snake.py')
-rwxr-xr-xsnake.py11
1 files changed, 0 insertions, 11 deletions
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