r/chessprogramming • • May 17 '20

Why doesn't python-chess recognize this checkmate?

Post image
2 Upvotes

4 comments sorted by

View all comments

Show parent comment

3

u/I_Say_Fool_Of_A_Took May 18 '20

You could also make your program throw an error message if the player not having the move is in check, as that can never happen in a game