X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=copsrc%2Fcop.cpp;h=90b54087237ca12ca5eb069b57e6c1a8acf4d679;hb=8b5e24a0d19af8af51155da4a5c8515bb3b8a7ee;hp=2a8002293094ddca3436f249487d2c9c25a9ac68;hpb=7ea4f9f073009ba9a6bbf2fec398b0742f798658;p=icfp05.git diff --git a/copsrc/cop.cpp b/copsrc/cop.cpp index 2a80022..90b5408 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); }