chessfriend/position/src/move_record.rs
Eryn Wells a9268ad194 [position] Add move tracking to Position
Create a new MoveRecord struct that tracks the move (aka ply) and irreversible
board properties. This should make it easier to unmake moves in the future.
2025-05-23 10:00:20 -07:00

15 lines
389 B
Rust

// Eryn Wells <eryn@erynwells.me>
use chessfriend_board::{board::HalfMoveClock, CastleRights};
use chessfriend_core::Square;
use chessfriend_moves::Move;
#[derive(Clone, Debug, Eq, PartialEq)]
pub(crate) struct MoveRecord {
pub ply: Move,
pub en_passant_target: Option<Square>,
pub castling_rights: CastleRights,
pub half_move_clock: HalfMoveClock,
}
impl MoveRecord {}