javascript-astar
javascript-astar copied to clipboard
Limiting number of squares moved
A lot of tactical strategy games have a “limited” movement area. For example, a character can only “step 6 squares” in any direction.
Is this possible to do with this fantastic piece of code?
you can just get the whole path, and only move the first six provided moves