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

king can move to its own position #4

Closed
petitlapin opened this issue May 10, 2017 · 0 comments · Fixed by #5
Closed

king can move to its own position #4

petitlapin opened this issue May 10, 2017 · 0 comments · Fixed by #5

Comments

@petitlapin
Copy link
Collaborator

For example, with B:WK1,K2,14,16,31,37,42:BK49 fen, state.moves() will return [{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":44},{"jumps":[],"takes":[],"from":49,"to":49},{"jumps":[],"takes":[],"from":49,"to":43}]
You can see twice the king can move to its own position.
I don't think the rules allow it and I didn't found in the code where the list is generated, maybe you know how to remove them?

Thanks,

Johnny

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 a pull request may close this issue.

1 participant