diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp index 9aeccde..1621ba8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,7 +1,18 @@ #include <iostream> +#include <string> -int main() +#include "spacebot.h" + +int main(int argc, char* argv[]) { - std::cout << "Hello world" << std::endl; - return 0; + if (argc < 2) { + std::cout << "usage: " << argv[0] << " <output folder>" << std::endl; + return 1; + } + + std::string outputFolder = argv[1]; + Spacebot bot(outputFolder); + bot.writeNextMove(); + + return 0; } |