diff options
author | eug-vs <eugene@eug-vs.xyz> | 2023-01-22 18:04:35 +0300 |
---|---|---|
committer | eug-vs <eugene@eug-vs.xyz> | 2023-01-22 18:04:35 +0300 |
commit | cd1e76b490c34ae2e2eaeed27eebe524d3cad486 (patch) | |
tree | 67b8e57fe42691f91c0a7f223dab18d7b6db2a9d /src/bitboard.rs | |
parent | 451bde2e5a07645afb98edb5760f1726e2f0be4a (diff) | |
download | chessnost-cd1e76b490c34ae2e2eaeed27eebe524d3cad486.tar.gz |
feat: compute board occupancy and empty squares
Diffstat (limited to 'src/bitboard.rs')
-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 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 { |