Skip to content

Commit

Permalink
Create snake_animation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
CherishMvp committed Nov 22, 2023
1 parent 62f5a2e commit f5546ab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions snake_animation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from asciimatics.screen import Screen
from time import sleep


def update(screen):
while True:
screen.print_at("Hello, Greedy Snake!", 0, 0)
screen.refresh()
sleep(0.5)


Screen.wrapper(update)

0 comments on commit f5546ab

Please sign in to comment.