Return a chessfriend_moves::EnPassant from a new Position::en_passant()

Replace Position's en_passant_target_square() and en_passant_capture_square()
with a single en_passant() method that returns a new EnPassant struct that has
the target and capture squares for the en passant move.
This commit is contained in:
Eryn Wells 2024-02-10 18:30:11 -07:00
parent cc23ee2d90
commit e6a9b7f8c4
8 changed files with 66 additions and 27 deletions

View file

@ -8,3 +8,4 @@ edition = "2021"
[dependencies]
chessfriend_core = { path = "../core" }
chessfriend_bitboard = { path = "../bitboard" }
chessfriend_moves = { path = "../moves" }