Skip to content

Commit 21935c6

Browse files
authored
Update snake.py
1 parent b7ca520 commit 21935c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SnakeGame/snake.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def win_focus():
102102
# Delete cells that are part of the snake
103103
try:
104104
for part in snake:
105-
s.remove(part.x*45 + part.y)
105+
s.remove(part.x * BOARD_SIZE + part.y)
106106
except:
107107
pass
108108

0 commit comments

Comments
 (0)