lib/astar: report final queue length

这个提交包含在:
magical 2022-12-17 19:29:26 -08:00
父节点 e1fb37d229
当前提交 e9ada04aa9

查看文件

@ -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 = []