summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
authorLoic Guegan <manzerbredes@mailbox.org>2022-11-01 14:48:41 +0100
committerLoic Guegan <manzerbredes@mailbox.org>2022-11-01 14:48:41 +0100
commitb3b8478a9cd1799cfa73c864ac994c5d54a78369 (patch)
treef2732b4c75bf3a86edede896527160163b086ee7 /snake.py
parenta98fcc25ffa986f9f6fbb45dcfb6e68366ca6678 (diff)
Minor changes
Diffstat (limited to 'snake.py')
-rwxr-xr-xsnake.py10
1 files changed, 0 insertions, 10 deletions
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