Update snake.py to make Python 3.x compatible

Replaced xrange with range.
This commit is contained in:
lade043
2020-03-01 20:28:14 +01:00
committed by GitHub
parent 07b1eaee10
commit 49c86e7001
+2 -2
View File
@@ -88,8 +88,8 @@ class Snake:
return self.COORDINATES
coordinates = [
[False for x in xrange(columns)]
for y in xrange(rows)
[False for x in range(columns)]
for y in range(rows)
]
for segment in self.SEGMENTS: