summaryrefslogtreecommitdiff
path: root/src/spacebot.cpp
diff options
context:
space:
mode:
authorJustin Worthe <justin.worthe@gmail.com>2015-06-08 21:21:08 +0200
committerJustin Worthe <justin.worthe@gmail.com>2015-06-08 21:21:08 +0200
commit72eaaeb60916e736de6c1aaa3d1047663bce19d9 (patch)
tree9d11b011144c83f8d64ea6eb994573dfd9b83ae5 /src/spacebot.cpp
parent0ef4646a9c19d3d88ffb7674123ccdc0a9012d98 (diff)
Started adding test for reading game state
Diffstat (limited to 'src/spacebot.cpp')
-rw-r--r--src/spacebot.cpp3
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"))
{
}