hieu-chess 0.1.0

a simple chess library that handles move generations, move validation, board representation and piece placements
Documentation
use thiserror::Error;

#[derive(Error, Debug)]
pub enum Error {
    #[error("the move is illegal")]
    IllegalMove,

    #[error("no piece to move")]
    UnknownMove,

    #[error("not your turn to move")]
    MustWaitForTurn,

    #[error("invalid square index")]
    IllegalIndex,

    #[error("invalid piece string")]
    InvalidPiece,

    #[error("invalid square string")]
    InvalidSquareString,

    #[error("invalid color")]
    InvalidColor,
}