获取最优路径方法
All checks were successful
ci/woodpecker/push/check_format Pipeline was successful

This commit is contained in:
Elaina 2024-12-21 15:02:55 +08:00
parent 0b1043b849
commit c0b92b9cc9
3 changed files with 138 additions and 2 deletions

View file

@ -51,8 +51,13 @@ class Node:
self.type = "未知"
self.type_scope = match_scope
def __repr__(self):
return (
f"Node(type={self.type},status={self.status},next_nodes={self.next_nodes})"
)
nodes: dict[str, Node] = {} # 节点编号:节点对象
next_step: dict[str, int] = {} # 节点编号:剩余刷新次数
next_step: list[str] = [] # 下一步可前往的节点编号
current_layer = 0 # 当前层数
scene_image = None # 整层的图像