bhlangonijr / chesslib

chess library for legal move generation, FEN/PGN parsing and more
Apache License 2.0
225 stars 78 forks source link

Fix illegal moves when en passant occurs and King is attacked. #15

Closed tasanuma closed 5 years ago

tasanuma commented 5 years ago

When en passant occurs and King is attacked by the en passant target pawn, illegal moves are generated as if any opposite piece can capture the pawn. Only opposite pawn move should be generated.

bhlangonijr commented 5 years ago

Hi @tasanuma. Thank you for the bug fix. It's already available in version 1.1.11.

tasanuma commented 5 years ago

Thanks for merging and releasing it!