diff --git a/src/repr/bitboard.rs b/src/repr/bitboard.rs index 799393d..969a5d3 100644 --- a/src/repr/bitboard.rs +++ b/src/repr/bitboard.rs @@ -112,22 +112,6 @@ impl BitBoard { } } -impl std::ops::BitAnd for BitBoard { - type Output = BitBoard; - - fn bitand(self, rhs: Self) -> Self::Output { - Self(self.0 & rhs.0) - } -} - -impl std::ops::BitOr for BitBoard { - type Output = BitBoard; - - fn bitor(self, rhs: Self) -> Self::Output { - Self(self.0 | rhs.0) - } -} - #[cfg(test)] mod test { use super::*; diff --git a/src/repr/board.rs b/src/repr/board.rs index a74e524..ba9e76f 100644 --- a/src/repr/board.rs +++ b/src/repr/board.rs @@ -1,11 +1,7 @@ use super::{bitboard::BitBoard, piece::Piece, CoordAxis, CoordPair}; use arrayvec::ArrayVec; use rand::seq::IteratorRandom; -use std::{ - cmp::Ordering, - fmt, - ops::{BitAndAssign, BitOrAssign}, -}; +use std::{cmp::Ordering, fmt}; /// Map of all points on the board against some type T /// Used to index like so: example[i][j]