From 72eaaeb60916e736de6c1aaa3d1047663bce19d9 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Mon, 8 Jun 2015 21:21:08 +0200 Subject: Started adding test for reading game state --- src/spacebot.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/spacebot.cpp') 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 #include -#include Spacebot::Spacebot(std::string outputPath) : outputFilename(outputPath+"/move.txt"), - gameState(outputPath+"/map.txt") + gameState(std::ifstream(outputPath+"/map.txt")) { } -- cgit v1.2.3