Need Code for A star path finding
Hi guys, Can any body send me A star ( A* ) path finding code in C++ for DirectX.
Thanks in advance.
A* pathfinding has exactly nothing to do with DirectX.
I googled for "a star pathfinding" and the first result leads you to a very accurate description of the algorithm. If you know C++ to begin with, it is a quite simple task to write an implementation of your own.
I googled for "a star pathfinding" and the first result leads you to a very accurate description of the algorithm. If you know C++ to begin with, it is a quite simple task to write an implementation of your own.
I specified DirectX because I googled for A* code & i found some source code which was either complete C code or a C++ code made using some library which I don't have. I am working on building my own code. Hopefully I`ll finish it soon, but I need a working code for reference.
As Nik02 pointed out - searching and pathfinding algorithms such as A* are independent of a multimedia technology such as DirectX. Or, more specifically, there is nothing in the DirectX suite that is directly related to A* implementations therefore this thread is better served by another forum - I'm moving this to AI [smile].
Also, I strongly suggest that you do some more research into example code - path finding is a very thoroughly covered subject. There are a huge number of books devoted to the subject and I've got several gaming-specific books on my shelf that discuss A* and related topics.
Cheers,
Jack
Also, I strongly suggest that you do some more research into example code - path finding is a very thoroughly covered subject. There are a huge number of books devoted to the subject and I've got several gaming-specific books on my shelf that discuss A* and related topics.
Cheers,
Jack
Quote:Original post by Altaf
I am working on building my own code. Hopefully I`ll finish it soon, but I need a working code for reference.
You can check out this link. It has binary and source code (chapter5 is about path finding).
I find "Programming Game AI by Example" to be a pretty good book, and I would recommend you to buy it if you want to learn further AI techniques.
Cheers
StratBoy61
Quote:Original post by StratBoy61Quote:Original post by Altaf
I am working on building my own code. Hopefully I`ll finish it soon, but I need a working code for reference.
You can check out this link. It has binary and source code (chapter5 is about path finding).
I find "Programming Game AI by Example" to be a pretty good book, and I would recommend you to buy it if you want to learn further AI techniques.
Cheers
StratBoy61
Amazing that they have all that soutce online ....
This one also looks like it has A* source code
http://www.wordware.com/files/games/
Quote:Original post by Anonymous Poster
http://www.please-do-my-homework-assignment.for.me.com
There's no need to assume bad faith. Someone working in DirectX is far more likely to be making a game than taking an AI class.
Quote:Original post by Anonymous Poster
http://www.please-do-my-homework-assignment.for.me.com
Amazingly, that website *is* valid, altough its the same as just www.me.com.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement