Legal Moves for a single cell #739
Answered
by
niklasf
ShebinJoseJacob
asked this question in
Q&A
-
I saw the function to generate all legal moves for the entire board. Is there any function that can generate legal moves for a single cell? Any Ideas to do this task? |
Beta Was this translation helpful? Give feedback.
Answered by
niklasf
Feb 18, 2021
Replies: 1 comment 1 reply
-
You can filter legal moves by masks like
Other useful masks: https://python-chess.readthedocs.io/en/latest/core.html#chess.BB_SQUARES |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
ShebinJoseJacob
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can filter legal moves by masks like
Other useful masks: https://python-chess.readthedocs.io/en/latest/core.html#chess.BB_SQUARES