]> ruin.nu Git - icfp05.git/blob - copsrc/cop.h
much more advanced cop
[icfp05.git] / copsrc / cop.h
1 #ifndef __COP_H__
2 #define __COP_H__
3
4 #include <bot.h>
5 #include <utility>
6
7 class Cop : public Bot {
8         public:
9                 Cop(std::string name):Bot(name,cop_foot){};
10                 
11                 std::string turn();
12         protected:
13                 virtual void preGamePreparations();
14                 void sendInformation();
15                 void getInformation();
16                 void sendPlan();
17                 void getPlans();
18                 void vote();
19                 int maybeAtNeighbor(const Intersection& intersection);
20
21                 __gnu_cxx::hash_map<std::string, std::pair<std::string, PlayerType> > _copTargets;
22                 std::list<__gnu_cxx::hash_map<std::string, int> > _maybeRobber;
23                 __gnu_cxx::hash_map<std::string, int> _winningPlans;
24                 std::string _robber;
25 };
26 #endif