Add Zobrist hashing
This commit is contained in:
@@ -290,6 +290,10 @@ pub enum Color {
|
||||
}
|
||||
|
||||
impl Color {
|
||||
pub const fn idx(self) -> usize {
|
||||
self as usize
|
||||
}
|
||||
|
||||
pub const fn opponent(self) -> Self {
|
||||
match self {
|
||||
Self::White => Self::Black,
|
||||
|
||||
Reference in New Issue
Block a user