⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.txt

📁 A star 算法求解最短路径问题
💻 TXT
字号:
This is a simple A* (A-Star) implementation. I did this for one of my university projects, so don't expect it would be very good.
Anyway, it's very simple because I'm not a C# programmer.
There are four classes, first one (class1.cs) is just a test for path finding, it opens a file and fills an array and uses it to pathfinding.
The second class, Path(path.cs) is used by third class to find the path.
The third class Node, is used by Path class.
The fourth class, PathFinding(pathfinding.cs) has a function, FindPath(), you can use it to get shortest path, its inputs are:
starti: column of start point in the array
startj: row of start point in the array
nexti: column of destination point in the array
nextj: row of destination point in the array
map: this is our array that has the map

BTW, excuse me for my poor English.

Cheers,
H.Ebrahimi

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -