Skip to content

Commit 3b45a66

Browse files
committed
Made pathfinding a bit more safe
1 parent b7e8156 commit 3b45a66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

2019/pathfinding.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def grid_search(self, grid, items):
8686
Searches the grid for some items
8787
8888
:param string grid: The grid in which to search
89-
:param Boolean items: The items to search
89+
:param list items: The items to search
9090
:return: A dictionnary of the items found
9191
"""
9292
items_found = {}
@@ -126,7 +126,7 @@ def vertices_to_grid(self, mark_coords={}, wall="#"):
126126
grid += "X"
127127
else:
128128
try:
129-
grid += self.vertices.get(x + y * j, wall)
129+
grid += str(self.vertices.get(x + y * j, wall))
130130
except AttributeError:
131131
if x + y * j in self.vertices:
132132
grid += "."

0 commit comments

Comments
 (0)