chessfriend/moves/src/generators.rs
Eryn Wells 574ab803dd [moves] Implement a move generator for pawns
I used Claude to help me figure this out. First time using AI for coding. It was
actually rather helpful!

Calculate BitBoards representing the various kinds of pawn moves when the move
generator is created, and then iterate through them.

En passant still isn't implemented here. This code has not been tested yet either.
2025-05-23 18:36:22 -07:00

12 lines
192 B
Rust

// Eryn Wells <eryn@erynwells.me>
mod pawn;
pub use pawn::PawnMoveGenerator;
use crate::Move;
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct GeneratedMove {
pub(crate) ply: Move,
}