X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=copsrc%2Fcop.cpp;h=411c11122365b89e0d16a5c3fa01fcd9b765357d;hb=HEAD;hp=8434960aed079d7147727d8a96b6134aac5d4a30;hpb=f43628e7d862566f3ffc6d4ea9274f17f723fffc;p=icfp05.git diff --git a/copsrc/cop.cpp b/copsrc/cop.cpp index 8434960..411c111 100644 --- a/copsrc/cop.cpp +++ b/copsrc/cop.cpp @@ -216,12 +216,12 @@ void Cop::sendPlan(){ } if (positions.size() > 0){ _robberLocation = positions.top().second; - cerr << "Sending myself to: " << _robberLocation << ", probability of robber: " << positions.top().first << endl; + //cerr << "Sending myself to: " << _robberLocation << ", probability of robber: " << positions.top().first << endl; } for (int i = 0; i < 2 && positions.size() > 1; ++i ){ positions.pop(); locations.push_back(positions.top().second); - cerr << "Sending another cop to: " << locations.back() << ", probability of robber: " << positions.top().first << endl; + //cerr << "Sending another cop to: " << locations.back() << ", probability of robber: " << positions.top().first << endl; } }else{ locations.push_back(_robberLocation); @@ -249,7 +249,7 @@ void Cop::sendPlan(){ } } if (!cop.empty()){ - cerr << "Sending " << cop << " to " << locations.front() << endl; + //cerr << "Sending " << cop << " to " << locations.front() << endl; _copTargets[cop].first = locations.front(); busyCops.push_back(cop); } @@ -297,3 +297,5 @@ int main(){ return 0; } + +#include "../botsrc/shortestPath.cpp"