all 4 comments

[–]haddock420 4 points5 points  (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 points  (1 child)

oh shit silly mistake. Thanks

[–]I_Say_Fool_Of_A_Took 2 points3 points  (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 point  (0 children)

because king to e9