From cd1e76b490c34ae2e2eaeed27eebe524d3cad486 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sun, 22 Jan 2023 18:04:35 +0300 Subject: feat: compute board occupancy and empty squares --- 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 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 { -- cgit v1.2.3