chessfriend/moves
Eryn Wells 6cca3a0f52 [moves] Bug: En passant moves were generated when no pawn was available to capture
Found another bug in the pawn move generator related to en passant moves. The
generator was emitting e.p. captures even when no pawn was available to capture
on that target square.

The solution was to include the e.p. square in the enemies list, effectively
treating the e.p. target as if it were occupied by an enemy piece, and then remove
it from the capture bitboards before move generation.

Include a couple tests to exercise this functionality.
2025-06-07 10:09:33 -07:00
..
src [moves] Bug: En passant moves were generated when no pawn was available to capture 2025-06-07 10:09:33 -07:00
tests [position, moves] Implement some castling tests 2025-05-21 08:25:49 -07:00
Cargo.toml [moves] Clean up implementation of Move and export Kind enum 2025-05-19 14:19:05 -07:00