From 3b231aa281e16319f8bed37da49e53dd6b950650 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 26 Jul 2026 13:35:36 +0200 Subject: fixing --- src/main.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src') 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(fromFile) << "\n"; + std::cout << static_cast(fromRank) << "\n"; + std::cout << static_cast(toFile) << "\n"; + std::cout << static_cast(toRank) << "\n"; Move move = {fromRank, fromFile, toRank, toFile}; std::println(); } -- cgit v1.2.3