From 9bc19965e010314187d69f5d97fe8fffb9389eeb Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 21 Jan 2023 20:00:30 +0300 Subject: test: add visual prints --- src/bitboard.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/bitboard.rs') 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 { -- cgit v1.2.3