We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hi Everyone, I followed the tutorial of the coding train regarding the A* path finding algorithm, it is very useful for one of my project, I tried to modify it to minimize the number of turns. When it calculates the f score, if the next step requires a change of direction I add a small value (0.2). This mod improved the situation reducing the number of turns in the shortest path. But it does not guarantee that it is always the minimum number of turns, sometimes it misses the best solution.
Do you have any suggestion?
Answers
You should consider posting your code. People will be able to see your approach or at least, replicate your attempt.
Kf
https://subutai6@bitbucket.org/subutai6/a-p5.git
Let me know if the link doesn't work.
link to Coding Train video (part 1 of 3)
Yes that video is the initial point, I added few changes to minimize turns but without a complete success.