From 105935a1d69aad252747d0ddb058f1971af01c17 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 11 Aug 2026 10:18:42 +0200 Subject: improving the code --- src/uci.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/uci.cpp b/src/uci.cpp index 5303c4b..29c544f 100644 --- a/src/uci.cpp +++ b/src/uci.cpp @@ -11,6 +11,7 @@ #include #include #include +#include #include #include @@ -107,10 +108,11 @@ static void PrintBitboard(uint64_t bb, const std::string &name) { for (int file = 0; file < 8; file++) { int sq = (rank * 8) + file; - std::cout << (((bb >> sq) & 1ULL) ? "1 " : ". "); + + std::cout << (((bb >> sq) & 1) > 0 ? "1 " : ". "); } - std::print(" | {0}\n", rank + 1); + std::print("| {0}\n", rank + 1); } std::cout << "0x" << std::hex << bb << std::dec << "\n\n"; } -- cgit v1.2.3