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

Promotion moves not implemented in ChessMove::from_san #80

Open
Gourab-Ghosh opened this issue Mar 3, 2023 · 1 comment
Open

Promotion moves not implemented in ChessMove::from_san #80

Gourab-Ghosh opened this issue Mar 3, 2023 · 1 comment

Comments

@Gourab-Ghosh
Copy link

Promotion moves not implemented in ChessMove::from_san. In position 8/7P/2p5/p1n2k2/6R1/5P2/p6K/2r5 w - - 0 1 calling the function ChessMove::from_san(board, "h8=Q") panics.

@kesslwovv
Copy link

Promotions are supported, just without the equal sign. ChessMove::from_san(board, "h8Q") will work.
My workaround was to remove all "=" before calling from_san.

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

2 participants