Usunięcie pdb

This commit is contained in:
andrzej 2020-04-28 22:18:52 +02:00
parent ef76909342
commit 9d1891524e

View File

@ -37,7 +37,6 @@ class Agent:
def find_path(self):
self.closed = []
self.open = PriorityQueue()
import pdb
start_node = Node(self.x, self.y)
self.open.put((0, start_node))
while self.open:
@ -45,7 +44,6 @@ class Agent:
print(current_node.x, current_node.y)
self.closed.append(current_node)
if current_node.x == self.dest.x and current_node.y == self.dest.y:
# pdb.set_trace()
while current_node.x != start_node.x and current_node.y != start_node.y:
self.path.append(current_node)
current_node = current_node.parent