I am developing a chess engine in python for a project and so far I added the move logic except en passant and castling. When trying to add the en passant functionality I tried to test my code but it seems like i am unable to capture a pawn that should be able to be captured through the en passant rule. it is as if i didnt add the rule altogether.
tried to add en passant rule to my chess engine code. i expected it to add the rule. what resulted was that you cant take the pawn that you should be able to take.