From 90483e4f3d0f7b95b3846bf1d0ff410ebd930011 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 25 May 2015 22:00:39 +0200 Subject: Made output random --- include/move.h | 14 ++++++++++++++ include/spacebot.h | 3 +++ 2 files changed, 17 insertions(+) create mode 100644 include/move.h (limited to 'include') diff --git a/include/move.h b/include/move.h new file mode 100644 index 0000000..e0e9b6b --- /dev/null +++ b/include/move.h @@ -0,0 +1,14 @@ +#ifndef MOVE_H +#define MOVE_H + +enum class Move: int { + NOTHING = 0, + MOVE_LEFT = 1, + MOVE_RIGHT = 2, + SHOOT = 3, + BUILD_ALIEN_FACTORY = 4, + BUILD_MISSILE_CONTROLLER = 5, + BUILD_SHIELD = 6 +}; + +#endif diff --git a/include/spacebot.h b/include/spacebot.h index 920eb73..a5c23c2 100644 --- a/include/spacebot.h +++ b/include/spacebot.h @@ -2,6 +2,7 @@ #include #include +#include "move.h" class Spacebot { public: @@ -10,4 +11,6 @@ public: private: std::ifstream mapStream; std::ofstream resultStream; + void writeMove(const Move& move); + Move chooseMove(); }; -- cgit v1.2.3