]> ruin.nu Git - icfp05.git/blobdiff - robbersrc/robber.cpp
initial robber done
[icfp05.git] / robbersrc / robber.cpp
index abf638b1c1f0c9f4107d3e3f415207bcd5d391b6..9bead891761960fd61654568996c0d043cdba3f3 100644 (file)
@@ -8,6 +8,12 @@ using namespace std;
 using namespace __gnu_cxx;
 
 string Robber::turn(){
+
+       //Ignore bribing for now
+       cout << "nobribe:" << endl;
+       string input;
+       getline(cin,input);
+
        hash_map<string,double> streets;
        Intersection& inter = _intersections[_location];
        for (hash_map<string,StreetType>::const_iterator street = inter.connections.begin();
@@ -112,6 +118,12 @@ string Robber::turn(){
        return destination;
        
 }
+void Robber::move(std::string location){
+       cout << "rmov\\" << endl;
+       Bot::move(location);
+       cout << "nobribe:" << endl;
+       cout << "rmov/" << endl;
+}
 
 int main(){
        Robber robber("harv-robber");