Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11661

Chess engine: En passant bug fix

$
0
0

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.


Viewing all articles
Browse latest Browse all 11661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>