diff options
author | Justin Worthe <justin.worthe@gmail.com> | 2015-06-08 21:21:08 +0200 |
---|---|---|
committer | Justin Worthe <justin.worthe@gmail.com> | 2015-06-08 21:21:08 +0200 |
commit | 72eaaeb60916e736de6c1aaa3d1047663bce19d9 (patch) | |
tree | 9d11b011144c83f8d64ea6eb994573dfd9b83ae5 /src/spacebot.cpp | |
parent | 0ef4646a9c19d3d88ffb7674123ccdc0a9012d98 (diff) |
Started adding test for reading game state
Diffstat (limited to 'src/spacebot.cpp')
-rw-r--r-- | src/spacebot.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/spacebot.cpp b/src/spacebot.cpp index f30bb34..5f87df9 100644 --- a/src/spacebot.cpp +++ b/src/spacebot.cpp @@ -2,11 +2,10 @@ #include "move_string_mapper.h" #include <random> #include <fstream> -#include <string> Spacebot::Spacebot(std::string outputPath) : outputFilename(outputPath+"/move.txt"), - gameState(outputPath+"/map.txt") + gameState(std::ifstream(outputPath+"/map.txt")) { } |