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:
parent
cc23ee2d90
commit
e6a9b7f8c4
8 changed files with 66 additions and 27 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -87,6 +87,7 @@ version = "0.1.0"
|
|||
dependencies = [
|
||||
"chessfriend_bitboard",
|
||||
"chessfriend_core",
|
||||
"chessfriend_moves",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue