javascript-astar icon indicating copy to clipboard operation
javascript-astar copied to clipboard

Limiting number of squares moved

Open ryanmunger opened this issue 4 years ago • 1 comments

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?

ryanmunger avatar May 29 '21 14:05 ryanmunger

you can just get the whole path, and only move the first six provided moves

PolishKebab avatar Mar 08 '23 19:03 PolishKebab