X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=blobdiff_plain;f=robbersrc%2Frobber.cpp;fp=robbersrc%2Frobber.cpp;h=9bead891761960fd61654568996c0d043cdba3f3;hp=abf638b1c1f0c9f4107d3e3f415207bcd5d391b6;hb=524573fae3ea0c8a1bb01a2b4fd848bff0bb04d1;hpb=f0bca5d0e69c0d1035c6b32b7d2c27e671f7060b diff --git a/robbersrc/robber.cpp b/robbersrc/robber.cpp index abf638b..9bead89 100644 --- a/robbersrc/robber.cpp +++ b/robbersrc/robber.cpp @@ -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 streets; Intersection& inter = _intersections[_location]; for (hash_map::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");