reset the tail before starting a new game
All checks were successful
docker-image / docker (push) Successful in 9m55s

This commit is contained in:
Stefan Bethke 2025-06-04 23:44:30 +02:00
commit bccb4f6104

View file

@ -41,7 +41,7 @@ class SnakeAnimation(BubaAnimation):
for r in range(self.height):
self.buba.simple_text(0, r, 0, "") # clear display
self.grid[y][x] = 1 + d
self.body.append((x, y))
self.body = [(x, y)]
self.render()
iterations = 0
while True: