add a simple wrapper to snake.py

This commit is contained in:
randomuser 2021-05-24 10:21:38 -05:00
parent d30da1b546
commit 11a0a45401
1 changed files with 11 additions and 0 deletions

11
snake_main.py Normal file
View File

@ -0,0 +1,11 @@
from snake2 import Snake
snake = Snake()
while True:
for i in snake.render():
print(i)
print(snake.gamestate)
snake.move(input("choose a move: "))
if snake.gamestate == 'gameover':
exit(0)