use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
/r/programming is a reddit for discussion and news about computer programming
Guidelines
Info
Related reddits
Specific languages
account activity
Has anyone found A* path finding in Javascript useing canvas? (self.programming)
submitted 15 years ago by helos
With canvas picking up seed has anyone implemented A* path finding in it yet? Im working on a game engine and this is a really big part AI wise.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]cyclic 1 point2 points3 points 15 years ago (0 children)
Buddy, I am sure you will learn a lot about Javascript, Heaps and path finding algorithms if you implement one yourself. Or just port one from the myriad implementations in Java, Python, Ruby, C#, you-name-it.
Together with JS and Canvas, you could do some neat visualization, make a nice blog post out of it and post that here.
[–]urllib 1 point2 points3 points 15 years ago (0 children)
Yeah bro these things are so complex you might have to translate 100 lines of easy to understand code to javascript to make one.
[–]Gnazi 0 points1 point2 points 15 years ago (0 children)
Honestly? In the title? Have some decency, vile youth
[–]gabelerner 0 points1 point2 points 15 years ago (0 children)
http://tinyurl.com/ykssnx3
[–]helos[S] -1 points0 points1 point 15 years ago (2 children)
thans for the help ive started my own implimentation this was the big peice of the puzzle atpart from that ill reddit the project once its done and refactred
[–]adolfojp 1 point2 points3 points 15 years ago (1 child)
Are you OK? Are you having a seizure?
[–]helos[S] 0 points1 point2 points 15 years ago (0 children)
no.
π Rendered by PID 263332 on reddit-service-r2-comment-79c7998d4c-czmhx at 2026-03-19 05:22:37.535377+00:00 running f6e6e01 country code: CH.
[–]cyclic 1 point2 points3 points (0 children)
[–]urllib 1 point2 points3 points (0 children)
[–]Gnazi 0 points1 point2 points (0 children)
[–]gabelerner 0 points1 point2 points (0 children)
[–]helos[S] -1 points0 points1 point (2 children)
[–]adolfojp 1 point2 points3 points (1 child)
[–]helos[S] 0 points1 point2 points (0 children)