diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-22 04:50:19 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-22 04:50:19 +0300 |
commit | 451bde2e5a07645afb98edb5760f1726e2f0be4a (patch) | |
tree | 98a5da795467d46320315882bb4020e5f276b046 /src | |
parent | c7b627574945a8c492e05db168726737cd301b39 (diff) | |
download | chessnost-451bde2e5a07645afb98edb5760f1726e2f0be4a.tar.gz |
feat: align bitboard print with board print
Diffstat (limited to 'src')
-rw-r--r-- | src/bitboard.rs | 4 |
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 |