aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.rs
diff options
context:
space:
mode:
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 1d6d0bc..6312dd8 100644
--- a/src/bitboard.rs
+++ b/src/bitboard.rs
@@ -4,8 +4,8 @@ pub type Bitboard = u64;
/// Print bitboard on screen in the same way squares appear in memory
/// (i.e the board is actually flipped along X)
#[allow(dead_code)]
-pub fn print(bb: Bitboard) {
- println!();
+pub fn print(bb: Bitboard, title: &str) {
+ println!("\n {}", title);
for rank in (0..8).rev() {
print!("{}|", rank + 1);
for file in 0..8 {