From: Michael Andreen Date: Sat, 25 Jun 2005 17:05:50 +0000 (+0000) Subject: reading evidence X-Git-Url: https://ruin.nu/git/?p=icfp05.git;a=commitdiff_plain;h=c2b823beca5d24afbac2c0489837eb7ec93bfbd3 reading evidence --- diff --git a/bot/bot.cpp b/bot/bot.cpp index dd51632..6a48602 100644 --- a/bot/bot.cpp +++ b/bot/bot.cpp @@ -198,6 +198,11 @@ void Bot::updateWorld(){ if (input == "ev/") break; istringstream evidence(input); + int world; + evidence >> input; + evidence >> input; + evidence >> world; + _evidence[world] = input; } getline(cin,input); diff --git a/bot/bot.h b/bot/bot.h index 1c40b44..efe373f 100644 --- a/bot/bot.h +++ b/bot/bot.h @@ -98,6 +98,7 @@ class Bot { __gnu_cxx::hash_map _intersections; __gnu_cxx::hash_map _players; __gnu_cxx::hash_map _banks; + std::map _evidence; std::map _playerTypeNames; std::map _playerTypes; std::string _name;