use crate::piece::Piece;
use crate::square::Square;

/// Pieces are made from a piece name and a square
#[derive(Debug)]
pub struct PieceDefn {
    pub name: Piece,
    pub square: Square,
}

impl PartialEq for PieceDefn {
    fn eq(&self, other: &Self) -> bool {
        self.name == other.name && self.square == other.square
    }
}
impl Eq for PieceDefn {}
