[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:
parent
af2bff348f
commit
574ab803dd
3 changed files with 193 additions and 0 deletions
12
moves/src/generators.rs
Normal file
12
moves/src/generators.rs
Normal 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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue