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

Position.State.enpasant should be nil, if no en passant is available #11

Open
christian-heise opened this issue Jun 15, 2023 · 0 comments

Comments

@christian-heise
Copy link

At every pawn move the possible en passant square is written to Game.Position.State.enpasant. However, when I want to compare two Position variables, if they are equal, this leads to wrong results. The positions after 1. e4 e5 2. d4 d5 and 1. d4 d5 2. e4 e5 should be exactly the same, however the Position variable is not equal because the respective last move was a different pawn move, even though no en passant is available.

christian-heise pushed a commit to christian-heise/ChessKit that referenced this issue Jun 15, 2023
Position.State.enpasant is now only set to the square, if en passant is really possible
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