Author Topic: [Resource] A* Implementation (Pathfinding)  (Read 12142 times)

findPath(obj a, obj b)
Returns an object representing the search for the shortest path from a to b. See Usage in the documentation on GitHub for more information about how to inspect the object and find the result.

findPathBlocking(obj a, obj b)
Returns the shortest path from a to b as a space-separated list of nodes, or "error" if no path could successfully be found.



Please go to the GitHub repository for the code (`pathing.cs`) and documentation (`README.md`).
« Last Edit: May 20, 2013, 01:49:04 AM by Port »

First if statement has a 1 after the closing bracket.

That is super short... cool.

First if statement has a 1 after the closing bracket.

Fixed.

Quote from: steam
[VKR] Brian Smith: skucj
[VKR] Brian Smith: slcik
[VKR] Brian Smith: i need youz hel
[VKR] Brian Smith: help
[VKR] Brian Smith: do you have an A* implementation for Blockland?
[VKR] Brian Smith: Trigun is being an utter upside down inside out cunt
Jailbot - RIP HPRC: no
Jailbot - RIP HPRC: i have an A* implementation for lua
Jailbot - RIP HPRC: that trigun just made
[VKR] Brian Smith: oh for your ld25
[VKR] Brian Smith: you sohuld convert to A*
Jailbot - RIP HPRC: what?
[VKR] Brian Smith: oh
[VKR] Brian Smith: i meant
[VKR] Brian Smith: you should convert to TS
[VKR] Brian Smith: because that'd be cool
Jailbot - RIP HPRC: http://i.imgur.com/HthqK.png
[VKR] Brian Smith: heh
[VKR] Brian Smith: fgt
[VKR] Brian Smith: whatever

Thank you Port. Thank you so much for releasing this, Brian Smith has been bugging me for ages.
« Last Edit: December 17, 2012, 02:23:00 AM by Trinick! »

Thank you Port. Thank you so much for releasing this, Brian Smith has been bugging me for ages.
I've been bugging a lot of people ;)

I've been bugging a lot of people ;)
he got me to make one not hours ago :(


just learn to script?
The fact is, I don't understand A*. It's complicated and 3 people tried to explain it to me and several articles tried to explain it but I just don't really get it. If i understood it it'd be easier for me to write it :)

Damn nice.

You sir, deserve a cookie and a firm handshake.

thankyouthankyouthankyouthank youthankyouthankyou

i wish there were a phrase to give more thanks than "thank you" because i need it badly right now

omgomgomgomgomg
wait what does it do




Made some bad neighbor finding code, maybe if I optimize it I'l release.


WINNINGG
« Last Edit: December 17, 2012, 10:59:35 PM by Brian Smithers »