Thank you. At first I thought I could just override GameEnd and have it check for check before mate, but then it was announcing Check! every move.
This e.p. trick for detecting moving out of check after the fact unfortunately does not work in general
If I understand this correctly, it should work as long as the game doesn't include hoppers. It does seem reasonable to assume that King cannot normally make special moves to escape check.
Is there a way I could add en passant to a leaping move?
Edit
I found another solution that seems to work—setting checked to 1 before GameEnd both post game sections.
Thank you. At first I thought I could just override GameEnd and have it check for check before mate, but then it was announcing Check! every move.
If I understand this correctly, it should work as long as the game doesn't include hoppers. It does seem reasonable to assume that King cannot normally make special moves to escape check.
Is there a way I could add en passant to a leaping move?
Edit I found another solution that seems to work—setting checked to 1 before GameEnd both post game sections.