[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.
This commit is contained in:
Eryn Wells 2025-05-23 18:36:22 -07:00
parent af2bff348f
commit 574ab803dd
3 changed files with 193 additions and 0 deletions

12
moves/src/generators.rs Normal file
View file

@ -0,0 +1,12 @@
// 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,
}