From 550caeee11086bd56db69176b3149ddfa160ee30 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 17 Oct 2015 17:02:24 +0200 Subject: Reverted to a simple decision tree Turns out it's much easier to write a bot by hand with if statements. --- test/move_string_mapper.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test/move_string_mapper.cpp') diff --git a/test/move_string_mapper.cpp b/test/move_string_mapper.cpp index ab167e3..a7af36a 100644 --- a/test/move_string_mapper.cpp +++ b/test/move_string_mapper.cpp @@ -20,4 +20,19 @@ SCENARIO("Writing a move") } } + + GIVEN("Build missle controller move") + { + Move move = Move::BUILD_MISSILE_CONTROLLER; + + WHEN("It is mapped to a string") + { + std::string moveString = MoveStringMapper().toString(move); + + THEN("The string is correct") + { + REQUIRE(moveString == "BuildMissileController"); + } + } + } } -- cgit v1.2.3