From 2bf5865dc0301ad6c19de1e9c5c57a23722c651f Mon Sep 17 00:00:00 2001 From: "rektdie@gmail.com" Date: Fri, 5 Apr 2024 23:37:29 +0200 Subject: [PATCH] BB:PrintBoard() printing . and X instead of 0 and 1 --- source/bitboards.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/source/bitboards.cpp b/source/bitboards.cpp index c2b5edd..0105d8e 100644 --- a/source/bitboards.cpp +++ b/source/bitboards.cpp @@ -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'; }