use brydz_core::player::side::Side;
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct StateHash24 {
hash: u32
}
impl StateHash24 {
pub fn new(hash: u32) -> Self{
Self{hash}
}
pub fn get_hash(&self) -> u32{
self.hash
}
}
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub struct StateHash24EntryDistinguish {
hash_rest: u32,
playing_side: Side,
}
impl StateHash24EntryDistinguish {
pub fn new(hash_rest: u32, playing_side: Side) -> Self{
Self{hash_rest, playing_side}
}
pub fn get_rest(&self) -> u32{
self.hash_rest
}
}