reset the tail before starting a new game
All checks were successful
docker-image / docker (push) Successful in 9m55s
All checks were successful
docker-image / docker (push) Successful in 9m55s
This commit is contained in:
parent
f2581a10ac
commit
bccb4f6104
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class SnakeAnimation(BubaAnimation):
|
||||||
for r in range(self.height):
|
for r in range(self.height):
|
||||||
self.buba.simple_text(0, r, 0, "") # clear display
|
self.buba.simple_text(0, r, 0, "") # clear display
|
||||||
self.grid[y][x] = 1 + d
|
self.grid[y][x] = 1 + d
|
||||||
self.body.append((x, y))
|
self.body = [(x, y)]
|
||||||
self.render()
|
self.render()
|
||||||
iterations = 0
|
iterations = 0
|
||||||
while True:
|
while True:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue