]> ruin.nu Git - icfp05.git/commitdiff
lots of connections is a good thing
authorMichael Andreen <harv@ruin.nu>
Sat, 9 Jul 2005 23:53:54 +0000 (23:53 +0000)
committerMichael Andreen <harv@ruin.nu>
Sat, 9 Jul 2005 23:53:54 +0000 (23:53 +0000)
robbersrc/robber.cpp

index e800b6cd6ad6fc12ebdfdca61a4358b8b415f910..5f36f475177f2a32072c62312ae445b93fbb5bb5 100644 (file)
@@ -24,7 +24,7 @@ string Robber::turn(){
                }
                //cerr << "Looking at street: " << street->first << endl;
                Intersection& conInter = _intersections[street->first];
                }
                //cerr << "Looking at street: " << street->first << endl;
                Intersection& conInter = _intersections[street->first];
-               double goodness = conInter.connections.size();
+               double goodness = conInter.connections.size()*5;
 
                list<string> closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true);
                unsigned int closestCop = closestFootCop.size();
 
                list<string> closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true);
                unsigned int closestCop = closestFootCop.size();