Skip to content

Commit

Permalink
Update grid.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basirmukhtar authored Oct 16, 2020
1 parent 9b38525 commit 56f768e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def __init__(self, x_dim, y_dim, connect8=True):
self.y_dim = y_dim
# First make an element for each row (height of grid)
self.cells = [0] * y_dim
# Go through each element and replace with row (width of grid)
# Go through each element and replace with row (width of grid)
for i in range(y_dim):
self.cells[i] = [0] * x_dim
# will this be an 8-connected graph or 4-connected?
Expand Down

0 comments on commit 56f768e

Please sign in to comment.