Retrograde analysis problem Given that this position is legal, and could be reached in a legal game of chess, what were the two last half-movess, or one move for White and one for Black?
[FEN &quot;5K2/8/6Pk/8/5Q1R/8/8/8 w - - 0 1&quot;]

P.S.: I don't know the source. If someone knows the author, please say so and I will make an edit.
The Black king is in check from both the White rook and queen, so it's impossible that either piece moved to give a check, it must have been a discovered check on the last move, which makes the White pawn on g6 the likely piece that was last moved.
White's last move must have been hxg6 en-passant. Which makes Black's previous move g7-g5 to block the check from the White queen.