From: Michael Andreen Date: Sat, 9 Jul 2005 23:00:19 +0000 (+0000) Subject: add the number of connecting streets as a factor in the goodness of an interconnection X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=commitdiff_plain;h=83e7d286ee9aed505c4a47fdad2bcd1955a2d0ee add the number of connecting streets as a factor in the goodness of an interconnection --- diff --git a/robbersrc/robber.cpp b/robbersrc/robber.cpp index 247a00e..b2a32d4 100644 --- a/robbersrc/robber.cpp +++ b/robbersrc/robber.cpp @@ -23,8 +23,8 @@ string Robber::turn(){ continue; } //cerr << "Looking at street: " << street->first << endl; - double goodness = 0; Intersection& conInter = _intersections[street->first]; + double goodness = conInter.connections.size(); list closestFootCop = shortestPath(street->first, cop_foot, FindPlayer(_players, cop_foot, 6), true); unsigned int closestCop = closestFootCop.size();