BB:PrintBoard() printing . and X instead of 0 and 1

This commit is contained in:
rektdie committed 2024-04-05 23:37:29 +02:00
1 parent 3fe2b9c20c
commit 2bf5865dc0
1 file changed
+5 -1
+5 -1
View File
@@ -9,7 +9,11 @@ void Bitboard::PrintBoard() const {
for (int file = 0; file < 8; file++) {
int square = rank * 8 + file;
std::cout << IsSet(square) << " | ";
if (IsSet(square)) {
std::cout << "X | ";
} else {
std::cout << ". | ";
}
}
std::cout << ' ' << rank + 1 << '\n';
}