Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Advanced En Passant Capture #13

Open
dmgolembiowski opened this issue Jan 20, 2024 · 0 comments
Open

Advanced En Passant Capture #13

dmgolembiowski opened this issue Jan 20, 2024 · 0 comments

Comments

@dmgolembiowski
Copy link
Owner

When a pawn advances two squares on its initial move and ends the turn adjacent to an enemy pawn on the same row, it may be captured via en passant by the enemy pawn as if it had moved only one square. This capture is legal only on the move immediately following the pawn's advance. So, construct a valid game state, verify en passant capture is possible, and compare the actual outcome of the move taken on the GameState against the theoretical expectation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant