So I talked earlier about my project, but here are the basics. Basically, we have a 2D map which has some objects inside. They can be either walls, which we cannot run over, hospitals, patients, or the player(the ambulance).
So what our algorithm is supposed to do is basically to order the ambulance to move left, right, up or down, and whether to pick up or drop off a patient. So a patient can only exist, in a 2 dimensional matrix, as follows, based on the location of the ambulance: Upper right, Upper left, Lower Right, Lower Left. So, there can be many ways to reach each patient. First off, we need to locate the patients and add them based on priority to a priority queue and know which patient we need to be going after.