using namespace __gnu_cxx;
string Cop::turn(){
-
+ cout << "inf\\" << endl;
+ cout << "inf/" << endl;
+
+ string input;
+
+ //ignore From-inform
+ do{
+ getline(cin,input);
+ }while(input != "from/");
+
+ cout << "plan\\" << endl;
+ //cout << "plan: " << _name << endl;
+ cout << "plan/" << endl;
+
+ //ignore From-plan
+ do{
+ getline(cin,input);
+ }while(input != "from/");
+
+ cout << "vote\\" << endl;
+ cout << "vote: " << _name << endl;
+ for (hash_map<string,Player>::const_iterator player = _players.begin();
+ player != _players.end(); ++player){
+ if (player->second.type != robber && player->first != _name){
+ cout << "vote: " << player->first << endl;
+ cerr << "voted for " << player->first << " of type: " << player->second.type << endl;
+ }
+ }
+ cout << "vote/" << endl;
+
+ //Ignore vote
+ getline(cin,input);
+
return _location;
}