aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-22 18:04:35 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-22 18:04:35 +0300
commitcd1e76b490c34ae2e2eaeed27eebe524d3cad486 (patch)
tree67b8e57fe42691f91c0a7f223dab18d7b6db2a9d /src/bitboard.rs
parent451bde2e5a07645afb98edb5760f1726e2f0be4a (diff)
downloadchessnost-cd1e76b490c34ae2e2eaeed27eebe524d3cad486.tar.gz
feat: compute board occupancy and empty squares
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 {