Earlier quoted context omitted.
Maybe it does only horizontal and vertical steps. In that case it makes no difference, because the heuristic should always give you the Manhattan distance, which is equal for all options that don't overshoot the goal.
The blue squares show the nodes it checked, and with A star the entire map shouldn't be blue on an empty maze.
Pathfinding Visualizer
11–20 of 55 posts
Re: Pathfinding Visualizer
#12Am I missing something that this is doing something other than finding shortest paths? For example A* on an empty map should generate a diagonal path with almost no checks outside the paths immediate neighbors. But I get this: https://link.ekin.dev/OTW2xy
Re: Pathfinding Visualizer
#13Earlier quoted context omitted.
Maybe it does only horizontal and vertical steps. In that case it makes no difference, because the heuristic should always give you the Manhattan distance, which is equal for all options that don't overshoot the goal.
The blue squares show the nodes it checked, and with A star the entire map shouldn't be blue on an empty maze.
Re: Pathfinding Visualizer
#14Nice! Some feature requests: The contrast between the walls and the blue (explored) areas is too low. When I press the round button to retry, the maze disappears. I'd like to see the same maze solved with different algorithm, or even see the same algorithm a few times. So my recommendation is to not errase the map, until the user press the button to make another map.
+1 for maze not disappearing. Comparing the different algorithms is the actually pleasing thing to watch.
Re: Pathfinding Visualizer
#15I need to do more of these fun side projects like this just for the pure joy of it.
Re: Pathfinding Visualizer
#16Re: Pathfinding Visualizer
#17Re: Pathfinding Visualizer
#18Re: Pathfinding Visualizer
#19Am I missing something that this is doing something other than finding shortest paths? For example A* on an empty map should generate a diagonal path with almost no checks outside the paths immediate neighbors. But I get this: https://link.ekin.dev/OTW2xy