From 451bde2e5a07645afb98edb5760f1726e2f0be4a Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 22 Jan 2023 04:50:19 +0300 Subject: feat: align bitboard print with board print --- src/bitboard.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/bitboard.rs') diff --git a/src/bitboard.rs b/src/bitboard.rs index 199e6c7..1d6d0bc 100644 --- a/src/bitboard.rs +++ b/src/bitboard.rs @@ -10,13 +10,13 @@ pub fn print(bb: Bitboard) { print!("{}|", rank + 1); for file in 0..8 { let index = rank * 8 + file; - print!("{}", if bb >> index & 1 == 1 { "1" } else { "." }); + print!("{}", if bb >> index & 1 == 1 { "⚫" } else { ". " }); if file == 7 { println!(); } } } - return println!(" ABCDEFGH"); + return println!(" a b c d e f g h"); } /// Return bitboard cardinality, aka number of elements in the set -- cgit v1.2.3