aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <adammegarules1@gmail.com>2026-07-26 13:35:36 +0200
committerAdam <adammegarules1@gmail.com>2026-07-26 13:35:36 +0200
commit3b231aa281e16319f8bed37da49e53dd6b950650 (patch)
treeb6bd4ef46cfac0e08bfde2214794e98ca33c9eed /src
parent78ea1d6464483de6d9e0148da77a4c1c705a48ea (diff)
fixing
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp9
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();
}