diff --git a/source/game/game.cpp b/source/game/game.cpp index 3608f70..9b9ab6b 100644 --- a/source/game/game.cpp +++ b/source/game/game.cpp @@ -510,6 +510,7 @@ std::string CTTRTSGame::GetStateAsString() const state += '\n'; state += GAME_HEADER_DELIMITER; state += units; + state += "END"; return state; } diff --git a/source/ttrts/README.md b/source/ttrts/README.md index a6d197a..aa57c51 100644 --- a/source/ttrts/README.md +++ b/source/ttrts/README.md @@ -43,13 +43,15 @@ ~~~~ UNIT:{ID} tm:{TEAM} vs:{VIS} dr:{DIR(NESW)} ps:[{X},{Y}] ... {continue for all units} + END ## ORDER FILE FORMAT ### Name Turn_{TURN_NUMBER}_Team_{TEAM_NUMBER}.txt ### Contents ORDER:{ORDER_CHAR} id:{UNIT_ID} - ... + ... {continue for all orders} + END ### Orders F - move unit [F]orward one space diff --git a/source/ttrts/main.cpp b/source/ttrts/main.cpp index e783116..abc457b 100644 --- a/source/ttrts/main.cpp +++ b/source/ttrts/main.cpp @@ -4,6 +4,7 @@ #include #include #include +#include #include "game.h" #include "version.h" @@ -155,7 +156,40 @@ int main(int argc, char* argv[]) // Wait for the team order file to be created std::cout<<"Waiting for "<