bug repaired
This commit is contained in:
parent
4aa0e7280d
commit
d59468d1bc
2
utils.py
2
utils.py
@ -13,7 +13,7 @@ def generate_rand_coordinates(max_x, max_y):
|
||||
return (random.randint(0, max_x), random.randint(0, (max_y)))
|
||||
|
||||
def add_frame_as_obstacles(obstacles_coords):
|
||||
for x in range(0, home_amount + 1):
|
||||
for x in range(0, PLAY_WIDTH//CELL_SIZE):
|
||||
obstacles_coords.append((x,-1))
|
||||
obstacles_coords.append((-1,x))
|
||||
obstacles_coords.append((PLAY_WIDTH//CELL_SIZE,x))
|
||||
|
Loading…
Reference in New Issue
Block a user