Skip to content

Encode castling correctly in Polyglot - #137

Open
YiheHuang wants to merge 1 commit into
CorentinGS:mainfrom
YiheHuang:fix/polyglot-castling-encoding-minimal
Open

YiheHuang wants to merge 1 commit into
CorentinGS:mainfrom
YiheHuang:fix/polyglot-castling-encoding-minimal

Conversation

@YiheHuang

Copy link
Copy Markdown

Summary

Polyglot encodes castling by the rook's destination file (e1h1/e1a1), but the encoder used the king's destination (e1g1/e1c1). Encode castling moves onto the rook file so they round-trip as castling.

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.

1 participant