diff --git a/C++ProjectTemplate b/C++ProjectTemplate index d03d5e3..2067d30 100755 Binary files a/C++ProjectTemplate and b/C++ProjectTemplate differ diff --git a/main.cpp b/main.cpp index 4f21089..626800b 100644 --- a/main.cpp +++ b/main.cpp @@ -21,7 +21,7 @@ int main() std::vector>map; std::vectorinstructions; std::vectorvisitedLocs; - std::ifstream file("testinput"); + std::ifstream file("input"); while (file.good()){ std::string line; std::getline(file,line); @@ -130,7 +130,6 @@ int main() if (pos.x-1<0||map[pos.y][pos.x-1]==' '){ if (map[pos.y][map[pos.y].size()-1]=='.'){ targetPos.x=map[pos.y].size()-1; - break; } else if (map[pos.y][map[pos.y].size()-1]=='#'){ //It's a dead end so we can't move. Go next. diff --git a/testinput b/testinput index 3049b26..6e06946 100644 --- a/testinput +++ b/testinput @@ -11,4 +11,4 @@ .#...... ......#. -10L5L5L10L4L5L5 \ No newline at end of file +10R5L5R10L4R5L5 \ No newline at end of file