Update snake.py to make Python 3.x compatible
Replaced xrange with range.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user