-
Notifications
You must be signed in to change notification settings - Fork 22
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
Promoting a pawn to Queen with check #60
Comments
The position based on Doesn't contain the move series you point out
The first two moves are impossible from the FEN you supply, and if the last move is performed black is not mating, since white could take using rook If you would supply new information I would be happy to look into any potential issue(s) with the GivesCheck() functionality. |
I am very sorry I made a copy/paste mistake by the starting FEN Position and I see now that it was also very bad explained. |
Np, copy-paste is the enemy of the people!
As a note, the library has extensive tests to make sure that the move generator is working - since that is usually the most error-prone in general. In case you notice anything strange, the best way is properly to create a unit test with the moves, the UCI functionality can convert UCI moves with no problems.
Yes, the gives check doesn't really care if the position is mate or not. To check for mate you can generate moves and see if there are any moves available. This is also how the notation functionality detects mate etc.
Your welcome! |
I think there is an issue with promotion of a pawn to Queen with check in the following scenario:
fen position "8/6pk/pb5p/8/1P2qP2/P7/2r2pNP/1QR4K b - - 1 2"
the best moves (mate in 3) are e3f2 g1h1 f2f1q, by the last one the function position.GivesCheck(move) does not return true.
I cannot upload a test because I am still working with VS2019 and I run an adapted version to my environment. It could also be my mistake in my adapted version.
Thank you for your attention
The text was updated successfully, but these errors were encountered: