--- /dev/null
+#include <iostream>
+#include <sstream>
+#include <iterator>
+#include "bot.h"
+
+using namespace std;
+using namespace __gnu_cxx;
+
+Bot::Bot(string name, string type){
+ _name = name;
+ _type = type;
+}
+
+void Bot::play(){
+ cout << "reg: " << _name << " " << _type << endl;
+
+ string input;
+ getline(cin, input);
+ if (input != "wsk\\")
+ return;
+ getline(cin, input);
+ _name = tokenizeString(input)[1];
+ cerr << "Got name: " << _name << endl;
+ buildGraph();
+ updateWorld();
+ turn();
+}
+
+void Bot::buildGraph(){
+
+}
+
+std::vector<std::string> tokenizeString(std::string input){
+ istringstream istr(input);
+ vector<string> strings;
+ copy(istream_iterator<string>(istr), istream_iterator<string>(), back_inserter(strings));
+ return strings;
+}