aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-22 04:50:19 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-22 04:50:19 +0300
commit451bde2e5a07645afb98edb5760f1726e2f0be4a (patch)
tree98a5da795467d46320315882bb4020e5f276b046 /src/bitboard.rs
parentc7b627574945a8c492e05db168726737cd301b39 (diff)
downloadchessnost-451bde2e5a07645afb98edb5760f1726e2f0be4a.tar.gz
feat: align bitboard print with board print
Diffstat (limited to 'src/bitboard.rs')
-rw-r--r--src/bitboard.rs4
1 files changed, 2 insertions, 2 deletions
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