lib/astar: report final queue length

main
magical 2022-12-17 19:29:26 -08:00
parent e1fb37d229
commit e9ada04aa9
1 changed files with 1 additions and 0 deletions

View File

@ -27,6 +27,7 @@ def search(start, is_goal, neighbors, heuristic=None):
if is_goal(this):
print("astar: visited", len(done), "nodes")
print("astar: pending", len(q), "nodes")
# reconsruct the path
n = this
path = []