You’re white and it’s your move. How would you solve this?
This was Duolingo’s daily puzzle yesterday, I’m just a bit confused how the checkmate works because black king can easily move out of check at the end
The views expressed in community are solely the opinions of participants, and do not reflect those of Peanut.
Learn more about our guidelines.
Move the rook to A8, the king will then capture it and you can then move your pawn up to h8 and promote it to queen

I think it's because if the king moves back to A7 the queen in H8 is then within the diagonal, its check if king goes to any of the surrounding squares so the game is over