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

Castling remove gates #26

Closed
wants to merge 39 commits into from
Closed

Castling remove gates #26

wants to merge 39 commits into from

Conversation

gbtami
Copy link
Member

@gbtami gbtami commented Aug 7, 2019

https://github.com/ianfab/Fairy-Stockfish/blob/master/src/position.cpp#L1300 is wrong because when we are doing a castling move gates can't be set on to square if it's a standard game.
If it's a Chess960 castling (king takes rook) the gates on to square may or may not be set depending on if we have something in hand to gate or not.

On the other side castling rook from square have to be cleared in gates.

@gbtami gbtami closed this Aug 7, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants