diff options
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main.cpp b/src/main.cpp index d59195d..ba5e57c 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,5 @@ #include "board.hpp" +#include "fen.hpp" #include "moves.hpp" #include <algorithm> #include <cctype> @@ -66,16 +67,17 @@ int main(int argc, char **argv) { std::cout << command << "\n"; transform(command.begin(), command.end(), command.begin(), ::toupper); - if (command.length() != 4) { - std::cout << "Unknown Command, use EXIT to exit"; - std::println(); - continue; - } if (command == "EXIT") { std::println(); std::cout << "Exiting...\n"; return 0; } + + if (command.length() != 4) { + std::cout << "Unknown Command, use EXIT to exit"; + std::println(); + continue; + } if (!isValidChessFile(command[0])) { std::cout << "ERROR: Expected valid file at first place"; std::println(); |
