Thanks, but the way was totally blocked by cacti. To make sure there is always at least one solution you could check out the A* algorithm:
https://briangrinstead.com/blog/astar-search-algorithm-in-javascript/
Thanks, but the way was totally blocked by cacti. To make sure there is always at least one solution you could check out the A* algorithm:
https://briangrinstead.com/blog/astar-search-algorithm-in-javascript/