From: Michael Andreen Date: Sat, 9 Jul 2005 23:53:54 +0000 (+0000) Subject: lots of connections is a good thing X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=commitdiff_plain;h=311cc01a3137b22c5617305245588cef6ef48ba9 lots of connections is a good thing --- diff --git a/robbersrc/robber.cpp b/robbersrc/robber.cpp index e800b6c..5f36f47 100644 --- a/robbersrc/robber.cpp +++ b/robbersrc/robber.cpp @@ -24,7 +24,7 @@ string Robber::turn(){ } //cerr << "Looking at street: " << street->first << endl; Intersection& conInter = _intersections[street->first]; - double goodness = conInter.connections.size(); + double goodness = conInter.connections.size()*5; list closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true); unsigned int closestCop = closestFootCop.size();