diff options
Diffstat (limited to 'src/attacks.rs')
-rw-r--r-- | src/attacks.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/attacks.rs b/src/attacks.rs index 97e4f37..787f200 100644 --- a/src/attacks.rs +++ b/src/attacks.rs @@ -236,6 +236,7 @@ mod tests { assert_eq!(pop_count(attacks[Square::G1 as usize]), 3); assert_eq!(pop_count(attacks[Square::H8 as usize]), 2); + print(attacks[Square::E4 as usize]); } #[test] @@ -252,6 +253,7 @@ mod tests { assert_eq!(pop_count(attacks[Square::E8 as usize]), 5); assert_eq!(pop_count(attacks[Square::A4 as usize]), 5); assert_eq!(pop_count(attacks[Square::H4 as usize]), 5); + print(attacks[Square::E4 as usize]); } #[test] @@ -265,14 +267,12 @@ mod tests { assert_eq!(attacks[0b00010100][4], 0b11101100); assert_eq!(attacks[0b01010100][4], 0b01101100); assert_eq!(attacks[0b01010010][4], 0b01101110); - } #[test] fn test_ray_attacks() { let attacks = Attacks::precompute_ray_attacks(); let square = Square::E4 as usize; - let bitboard = attacks[0][square] | attacks[1][square] | |