User:ApLundell/tmp

{|style="background:transparent" {|style="background:transparent" {|style="background:transparent"

{|style="background:transparent"

{|style="background:transparent"

{|style="background:transparent"

{|style="background:transparent"

{|style="background:transparent" {|style="background:transparent"

{|style="background:transparent"

{|style="background:transparent"

If black moves the pawn, queen takes it and white wins. So....

{|style="background:transparent"

{|style="background:transparent"

Now the king can move to either h7 or g8, in both cases the king is back in check after the knight moves back to e7. (If the king moves from h7 to h6, queen moves to g6 and checkmates.)