Intersection& conInter = _intersections[street->first];
list<string> closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true);
- list<string> closestCarCop = shortestPath(street->first, cop_car, FindPlayer(_players, cop_car, 5), true);
+ list<string> closestCarCop = shortestPath(street->first, cop_car, FindPlayer(_players, cop_car, closestFootCop.size() - 1), true);
unsigned int closestCop = 0;
bool copInCar = false;
- if (closestCarCop.size() < closestFootCop.size() && closestCarCop.size() > 0){
+ if (closestCarCop.size() > 0){
closestCop = closestCarCop.size();
copInCar = true;
}else
}
int main(){
- Robber robber("robber");
+ Robber robber("harv-robber");
robber.play();
return 0;