Dijkstra:快速玩具,可与Dijkstra Maps玩Roguelikes

时间:2024-06-05 17:25:28
【文件属性】:

文件名称:Dijkstra:快速玩具,可与Dijkstra Maps玩Roguelikes

文件大小:4KB

文件格式:ZIP

更新时间:2024-06-05 17:25:28

Python

迪克斯特拉 快速玩具,可与Dijkstra Maps玩Roguelikes 基于流氓盆地的Dijkstra文章 使用方法: from dijkstra_map import DijkstraMap my_map = DijkstraMap ( 30 , 10 ) my_map . add_goal ( 5 , 5 ) my_map . add_goal ( 8 , 5 , - 3 ) #Apply a weight for a goal, lower is more desirable my_map . recalculate_map () print ( my_map ) # Display the map weights 1-number per tile for move in my_map . get_move_options ( 3 , 3 ): # Get the re


【文件预览】:
Dijkstra-master
----main.py(570B)
----dijkstra_map.py(4KB)
----LICENSE(1KB)
----.gitignore(1KB)
----README.md(1KB)

网友评论