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

.moves() can provide moves that throw an "invalid move" error #460

Open
StevenStavrakis opened this issue May 13, 2024 · 0 comments
Open

Comments

@StevenStavrakis
Copy link

When moving a pawn to a promotion square, if the move is made without including a promotion option, the move will throw an error. However, .moves() shows it as a legal move.

Recommended solution
A different error should be thrown if a pawn is moved to a promotion square without providing a promotion argument. That way, the error can be caught and handled in the UI.

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