diff options
| -rw-r--r-- | src/main.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/main.cpp b/src/main.cpp index ccec7a1..a508042 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -65,6 +65,7 @@ int main(int argc, char **argv) { std::cout << "> "; std::string command; std::cin >> command; + std::cout << command << "\n"; transform(command.begin(), command.end(), command.begin(), ::toupper); if (command.length() != 4) { @@ -106,10 +107,10 @@ int main(int argc, char **argv) { uint8_t fromRank = command[1] - '0'; uint8_t toFile = command[2] - 'A'; uint8_t toRank = command[3] - '0'; - std::cout << fromFile << "\n"; - std::cout << fromRank << "\n"; - std::cout << toFile << "\n"; - std::cout << toRank << "\n"; + std::cout << static_cast<int>(fromFile) << "\n"; + std::cout << static_cast<int>(fromRank) << "\n"; + std::cout << static_cast<int>(toFile) << "\n"; + std::cout << static_cast<int>(toRank) << "\n"; Move move = {fromRank, fromFile, toRank, toFile}; std::println(); } |
