mamonu / Astar

A* pathfinding algorithm experiments
MIT License
3 stars 6 forks source link

Transforming route into directions #13

Closed scavenger29 closed 5 years ago

scavenger29 commented 5 years ago

This PR converts the present coordinate output to the directional move that the bot should take. Whenever a diagonal path is taken, two directions are added. Also, it checks among the two directions which one to choose, depending on whether it is blocked or not.