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

[Feature Request] Expose 'legal: false' option to public API moves() and move() function #425

Open
dhirallin opened this issue Jul 12, 2023 · 0 comments

Comments

@dhirallin
Copy link

dhirallin commented Jul 12, 2023

I would like my interface to support several chess variants (slightly different rules).
This would be easy to implement if I were able to use moves() to obtain a list of all moves (legal and illegal) and then filter them down.
It would also be handy if I could make these pseudo-legal moves using move() and load() as well.
I noticed that your internal function _moves() already supports this, so I figure it should be doable to get it into the public API?
One example of a variant rule is that I want to be able to move a king into check and then perform subsequent moves without them failing.

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