rchess 2.3.0

A Chess Library Written In Rust
Documentation
mod bitboard;
mod color;
mod direction;
mod file;
mod magic;
mod piece;
mod rank;
mod square;

pub use bitboard::*;
pub use color::*;
pub use direction::*;
pub use file::*;
pub use magic::*;
pub use piece::*;
pub use rank::*;
pub use square::*;

/// The starting chess position's fen.
pub const START_FEN: &str = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq -";

/// The [`CastleSide`] enum represents the side a king can castle.
#[derive(Copy, Clone, Eq, PartialEq, Hash, Debug)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub enum CastleSide {
    Kingside,
    Queenside,
}