No description
Find a file
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
bitboard [bitboard, board, core, moves] Implement SliderMoveGenerator 2025-05-26 17:41:43 -07:00
board [board] Remove an unused test helper function 2025-06-06 21:46:13 -07:00
core [core] Random Number Generator 2025-06-02 15:44:38 -07:00
doc Move Notes and ChessPieces docs to a doc directory 2024-01-22 19:27:08 -08:00
explorer [explorer] Remove unused MakeMove import 2025-06-07 08:55:54 -07:00
moves [moves] Bug: En passant moves were generated when no pawn was available to capture 2025-06-07 10:09:33 -07:00
position [position] Track seen board positions in a HashSet 2025-06-07 08:55:34 -07:00
.gitignore
Cargo.lock [board, position] Implement Zobrist hashing 2025-06-05 08:22:34 -07:00
Cargo.toml Empty board package 2024-04-25 09:32:27 -07:00
ChessFriend.code-workspace Visual Studio Code workspace 2024-02-11 10:22:33 -07:00
Makefile WIP 2025-05-08 17:37:59 -07:00
rustfmt.toml Add a rustfmt.toml file 2025-06-07 08:48:45 -07:00