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. |
||
---|---|---|
.. | ||
src | ||
tests | ||
Cargo.toml |