]> ruin.nu Git - icfp05.git/blobdiff - bot/bot.h
changed the shortest path algorithm to support reverse search
[icfp05.git] / bot / bot.h
index d01ec114853e118456235efea29b4650d8d268c5..72d2d6bd7a88888bd3f9367dc3c783beac2c435b 100644 (file)
--- a/bot/bot.h
+++ b/bot/bot.h
@@ -83,7 +83,7 @@ class Bot {
                virtual std::string turn() = 0;
                void move(std::string location);
                void getPlayers();
-               std::list<std::string> shortestPath(const std::string& from, PlayerType type, const SPGoal& goal);
+               std::list<std::string> shortestPath(const std::string& from, PlayerType type, const SPGoal& goal, bool reverse = false);
 
        __gnu_cxx::hash_map<std::string, Intersection> _intersections;
        __gnu_cxx::hash_map<std::string, Player> _players;