jeudi 5 octobre 2017

Javascript find distance between 2 points in a 2D array

I'm trying to develop a A* algoruthm for a project. I have a 2D array that looks like this:

##########
###S######
##########
#######E##
##########

what is the fastest way to find the distance between these 2 points?




Aucun commentaire:

Enregistrer un commentaire