aboutsummaryrefslogtreecommitdiff
path: root/src/bitboard.rs
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2023-01-21 20:00:30 +0300
committereug-vs <eugene@eug-vs.xyz>2023-01-21 20:00:30 +0300
commit9bc19965e010314187d69f5d97fe8fffb9389eeb (patch)
treecfefa1330cbdee8696d8de4ad29dfebe0afd27b5 /src/bitboard.rs
parentd0a67b462b492f136c5d07f4a75819d3516652d5 (diff)
downloadchessnost-9bc19965e010314187d69f5d97fe8fffb9389eeb.tar.gz
test: add visual prints
Diffstat (limited to 'src/bitboard.rs')
-rw-r--r--src/bitboard.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bitboard.rs b/src/bitboard.rs
index 646006c..f43d28e 100644
--- a/src/bitboard.rs
+++ b/src/bitboard.rs
@@ -5,6 +5,7 @@ pub type Bitboard = u64;
/// (i.e the board is actually flipped along X)
#[allow(dead_code)]
pub fn print(bb: Bitboard) {
+ println!();
for index in 0..64 {
print!("{}", if bb >> index & 1 == 1 { "1" } else { "." });
if (index + 1) % 8 == 0 {