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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check if a move is pseudo-legal without generating the list of pseudo-legal moves #114

Open
fathzer opened this issue Nov 8, 2023 · 0 comments

Comments

@fathzer
Copy link

fathzer commented Nov 8, 2023

Hello,

Thanks a lot for this very impressive library, very useful for people like me, totally unable to understand how bitmap works 馃槈

I saw that the issue 5, 76 and 112 (related to board.isMoveLegal returning true for some illegal moves) are closed.
I wonder how I can check if a move is pseudo-legal without generating the whole moves list. If it鈥檚 not possible, may I suggest adding a method to do that?

Here is my use case: A classical tree search optimization is to check, before generating any move, if a killer move, or a best move found in a transposition table, leads to a tree cut. In both cases we must ensure the move is pseudo-legal before generating the whole move list (because checking if a move is pseudo-legal is usually far faster than generating all moves).

Thanks for reading 馃槉

@fathzer fathzer changed the title Check if a move is (pseudo-)legal without generating the list of (pseudo-)legal moves Check if a move is pseudo-legal without generating the list of pseudo-legal moves Nov 8, 2023
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