纯 MoonBit 实现的路径查找算法库,提供 9 种算法(BFS/DFS/Dijkstra/A*/Greedy BFS/Bidirectional BFS/Bellman-Ford/IDA*/JPS)、5 种图类型(图/网格/加权网格/六边形网格/Trait 接口)、3 种迷宫生成器和 ASCII/HTML 双模式可视化。零外部依赖,基于 Graph trait 泛型设计。
版权所有:中国计算机学会技术支持:开源发展技术委员会
京ICP备13000930号-9
京公网安备 11010802047560号
MoonPathfinding
A comprehensive pathfinding library for MoonBit, featuring 9 algorithms, 5 graph types, maze generators, and ASCII/HTML visualization.
Features
Algorithms (9)
Graph Types (5)
Maze Generators (3)
Visualization
Installation
Quick Start
Project Structure
API Overview
Algorithms
Path Utilities
smooth_pathuses an explicit two-node line-of-sight predicate.expand_pathconnects each waypoint pair with a continuous unweighted BFS segment and returns an empty path when a segment is unreachable.Graph Trait
PathResult
Visualization
Run CLI Demo
Run Tests
License
MIT
Links