diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-11 10:18:42 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-11 10:18:42 +0200 |
| commit | 105935a1d69aad252747d0ddb058f1971af01c17 (patch) | |
| tree | 7950bf1f3e0c8d22f147d2a3a12b89cdf0395ea7 /src | |
| parent | efa9959d73c798480252b1e53dd6846c07c10ac9 (diff) | |
improving the code
Diffstat (limited to 'src')
| -rw-r--r-- | src/uci.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
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 <print> #include <sstream> #include <string> +#include <sys/types.h> #include <type_traits> #include <unordered_map> @@ -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"; } |
