Commits

Jon Olsson committed 13d5f0a

add mongobot

Comments (0)

Files changed (2)

 ADD_BOT( Tit4Tat, 1 );
 ADD_BOT( Randomly, 1 );
 ADD_BOT( Crasher, 1 );
+#include "mongobot.hpp"
+ADD_BOT( MongoBot, 1 );
 
 //////////////////////////////////////////////////////////////////////////
 
+class MongoBot : public bot 
+{
+   bot::Decision opponentsLast;
+public:
+   MongoBot() : opponentsLast(bot::Cooperate) {}
+   virtual bot::Decision get_decision() { return opponentsLast; }
+   virtual void opponents_last_decision(bot::Decision d) { opponentsLast = d; }
+};