Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b45a66

Browse files
committed
Made pathfinding a bit more safe
1 parentb7e8156 commit3b45a66

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-
:paramBoolean items: The items to search
89+
:paramlist 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
exceptAttributeError:
131131
ifx+y*jinself.vertices:
132132
grid+="."

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp