Relative Content

Tag Archive for c#path-findinga-star

Ensure basic A star pathfinding is creating a linked path in C#

I have a function for A star pathfinding that does not allow diagonal movement where I have penalties for changing direction (F score increased). However, I have found that the resulting path is not always linked, often jumping back to a random square.