impl std::ops::Not for Piece
This commit is contained in:
parent
1803176a24
commit
30088f228a
@ -23,6 +23,14 @@ impl Piece {
|
||||
}
|
||||
}
|
||||
|
||||
impl std::ops::Not for Piece {
|
||||
type Output = Piece;
|
||||
|
||||
fn not(self) -> Self::Output {
|
||||
self.flip()
|
||||
}
|
||||
}
|
||||
|
||||
const BOARD_SIZE: usize = 8;
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user