From c3474b1481a02baefda1abe286d4fbef39597bce Mon Sep 17 00:00:00 2001 From: eug-vs Date: Wed, 14 Sep 2022 21:47:28 +0300 Subject: feat: print bitboard more visually appealing --- src/bitboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3