📜  redblobgames 寻路 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:17.690000             🧑  作者: Mango

代码示例2
current = goal 
path = []
while current != start: 
   path.append(current)
   current = came_from[current]
path.append(start) # optional
path.reverse() # optional