mastosnake/snake_main.py

12 lines
222 B
Python
Raw Normal View History

2021-05-24 10:23:04 -05:00
from snake import Snake
2021-05-24 10:21:38 -05:00
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)