BB:PrintBoard() printing . and X instead of 0 and 1
This commit is contained in:
1 parent
3fe2b9c20c
commit
2bf5865dc0
1 file changed
+5
-1
@@ -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';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user