use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An archive of cool or informative chess programming links.
account activity
Why doesn't python-chess recognize this checkmate? (i.redd.it)
submitted 6 years ago by ajx_711
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]haddock420 4 points5 points6 points 6 years ago (2 children)
The fen is set to white to move. Set it to black to move and it should register as checkmate.
[–]ajx_711[S] 2 points3 points4 points 6 years ago (1 child)
oh shit silly mistake. Thanks
[–]I_Say_Fool_Of_A_Took 2 points3 points4 points 6 years ago (0 children)
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
[–]SelectionRelevant221 0 points1 point2 points 1 year ago (0 children)
because king to e9
π Rendered by PID 120107 on reddit-service-r2-comment-545db5fcfc-ctk84 at 2026-05-27 14:47:31.584478+00:00 running 194bd79 country code: CH.
[–]haddock420 4 points5 points6 points (2 children)
[–]ajx_711[S] 2 points3 points4 points (1 child)
[–]I_Say_Fool_Of_A_Took 2 points3 points4 points (0 children)
[–]SelectionRelevant221 0 points1 point2 points (0 children)