Logic:
Given current location and goal location calculate direction I should move and return that direction. If there is an obstacle, it must move around that object, so We need a procedure to get the direction to move around that object. We might also want a different function for different bot types.
Name: getNextDirection Params: MapLocation currentLocation, MapLocation goal, Callable canMove
Return: Directions
Logic: Given current location and goal location calculate direction I should move and return that direction. If there is an obstacle, it must move around that object, so We need a procedure to get the direction to move around that object. We might also want a different function for different bot types.