summaryrefslogtreecommitdiff
path: root/snake.py
diff options
context:
space:
mode:
Diffstat (limited to 'snake.py')
-rwxr-xr-xsnake.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/snake.py b/snake.py
index 7526731..330ba12 100755
--- a/snake.py
+++ b/snake.py
@@ -215,4 +215,8 @@ class Snake:
if self.play(self.direction,handle_quit=False) <0:
break
- \ No newline at end of file
+
+
+if __name__ == "__main__":
+ game=Snake(length=50)
+ game.play_with_keyboard() \ No newline at end of file