]> ruin.nu Git - icfp05.git/blobdiff - robber/robber.cpp
changed the shortest path algorithm to support reverse search
[icfp05.git] / robber / robber.cpp
index 0e0a265a1e26daaf0fd6da99f0d2126922a9ed88..4bc04000f79ff21efba4c7ba2d6e62eb1818fad1 100644 (file)
@@ -36,8 +36,8 @@ string Robber::turn(){
                double goodness = 0;
                Intersection& conInter = _intersections[street->first];
 
-               list<string> closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6));
-               list<string> closestCarCop = shortestPath(street->first, cop_car, FindPlayer(_players, cop_car, 5));
+               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);
 
                unsigned int closestCop = 0;
                bool copInCar = false;