-
- if (!secondLocation.empty()){
- list<string> closestFootCop = shortestPath(_robberLocation, cop_foot, FindPlayer(_players, cop_foot), true);
- list<string> closestCarCop = shortestPath(_robberLocation, cop_car, FindPlayer(_players, cop_car, closestFootCop.size() - 1), true);
- PlayerType copType = cop_foot;
- string copLocation;
- if (closestCarCop.size() > 0){
- copType = cop_car;
- copLocation = closestCarCop.back();
- }else
- copLocation = closestFootCop.back();
-
-
+
+ vector<string> busyCops;
+ busyCops.push_back(_name);
+ while (locations.size() > 0){
+ string cop;
+ int dist = 1000000;