add a simple wrapper to snake.py
This commit is contained in:
parent
d30da1b546
commit
11a0a45401
|
@ -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)
|
||||
|
Loading…
Reference in New Issue