仓库地址:
GitHub - gorustyt/go-pathfinding: 原生go语言写的寻路算法库
参考js库:https://github.com/qiao/PathFinding.js
算法执行效果
a*
bfs
jump point
如何运行demo:
go run https://github.com/gorustyt/go-pathfinding/blob/main/example/demo/main.go
由于fyne 需要cgo ,所以得先安装gcc
喜欢欢迎大家点个赞,后面会完善该项目并出一些列文章