X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=copsrc%2Fcop.cpp;h=411c11122365b89e0d16a5c3fa01fcd9b765357d;hb=0fcec68173ef7191d3d211d6662a2bc615061324;hp=2a8002293094ddca3436f249487d2c9c25a9ac68;hpb=7ea4f9f073009ba9a6bbf2fec398b0742f798658;p=icfp05.git diff --git a/copsrc/cop.cpp b/copsrc/cop.cpp index 2a80022..411c111 100644 --- a/copsrc/cop.cpp +++ b/copsrc/cop.cpp @@ -216,15 +216,16 @@ 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); + locations.push_back(_robberLocation); } if (!_robberLocation.empty()){ //cerr << "Robber found at " << _robberLocation << endl; @@ -248,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); } @@ -296,3 +297,5 @@ int main(){ return 0; } + +#include "../botsrc/shortestPath.cpp"