code review

This commit is contained in:
Maciej Sobkowiak 2019-04-27 18:24:51 +02:00
parent 07ff61b1dd
commit 053e225135
2 changed files with 1 additions and 5 deletions

View File

@ -21,8 +21,6 @@ def APath(table, start, end):
start_node.g = start_node.h = start_node.f = 0
end_node = AStarNode(None, end)
end_node.g = end_node.h = end_node.f = 0
# Initialize both open and closed list
open_list = []
closed_list = []

View File

@ -41,11 +41,9 @@ class Window():
#copy table
array = [[self.grid.table[col][row] for row in range(cols)] for col in range(rows)]
path = APath(array,(0,0),(19,19))
print(path,"\n\n")
#draw movement of garbage truck
for index, t in enumerate(path):
x,y =t
if index != 0: