From 83e7d286ee9aed505c4a47fdad2bcd1955a2d0ee Mon Sep 17 00:00:00 2001 From: Michael Andreen Date: Sat, 9 Jul 2005 23:00:19 +0000 Subject: [PATCH] add the number of connecting streets as a factor in the goodness of an interconnection --- robbersrc/robber.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- 2.39.2