aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-09-14 21:47:28 +0300
committereug-vs <eugene@eug-vs.xyz>2022-09-14 21:47:28 +0300
commitc3474b1481a02baefda1abe286d4fbef39597bce (patch)
treed17c256759f070cad275544bf40e40ee55fc7975
parent318067f9e66b363b14e684492b7a1af021eb6a20 (diff)
downloadj1chess-master.tar.gz
feat: print bitboard more visually appealingHEADmaster
-rw-r--r--src/bitboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bitboard.c b/src/bitboard.c
index c0abbf8..e53e3ed 100644
--- a/src/bitboard.c
+++ b/src/bitboard.c
@@ -5,7 +5,7 @@
* (i.e the board is actually flipped along X) */
void printBitboard(Bitboard bb) {
for (U64 index = 0; index < 64; index++) {
- printf("%lu", (bb >> index) & 1);
+ printf("%c", (bb >> index) & 1 ? '1' : '.');
if ((index + 1) % 8 == 0) printf("\n");
}
printf("\n\n");