/*
* A* algorithm implementation.
*/
 
 function Astar(){
 };
 
 //Compute the best path to go to the destination.
 //Parameters description :
 // - map is a Map object it contains all data that the algorithm will use to determine if each point is available for the path destination.
 // - destinationX and destinationY is the location in the map the player has to go.
 // - forbidenArea is an array of some values that you decide the player cannot go in (the algorithm will consider these value as forbidden and will make a path avoiding those points)
 Astar.compute = function(map, destinationX, destinationY, forbiddenArea){
 
 }
/*
* A* algorithm implementation.
*/
 
function Astar(){

    /*Compute the best path to go to the destination.
    *Parameters description :
    * - map is a Map object it contains all data that the algorithm will use to determine if each point is available for the path destination.
    * - startX and startY is the start location.
    * - endX and endY is the end location.
    * - forbidenArea is an array of some values. The algorithm will consider these value as forbidden and will make the path avoiding those points.
    */
    this.findPath = function(map, startX, startY, endX, endY, forbiddenArea){

    };

};
Add findPath function in Astar object
Add findPath function in Astar object
