3

I am not a chess player but I have a homework where I have to code a chess program. I would like to know if it is possible for a player's piece to be in check, the player to move out of check, and in turn put the other player in a stalemate, from just one move?

For example: White is in check -> White moves out of check -> Black is stalemated

I haven't found any examples of it so far, but I also haven't found anything saying it's never possible, so if anyone can say either way that would be great!

1
  • Yes it can, i believe the answer provided is quite valid. From a programming perspective; all you need to worry about is IF no legal move AND NOT in check THEN stalemate to deal with this scenario. Checkmate being IF no legal move AND in check then Checkmate.
    – Dheebs
    Nov 25, 2020 at 2:50

1 Answer 1

4

It's possible, e.g.

[FEN "2Q4k/2R4b/8/8/8/8/K7/8 b - - 0 1"]

1...Bg8+
2. Ka3?? 1/2-1/2
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.