This can be done against a second player, and is much easier to do that way rather than hope the computer plays the right moves.
PLAYER 1 - Move the pawn in front of your king to e4
PLAYER 2 - Move the pawn in front of their king to e5
P1 - Move your queen to H5
P2 - Move their king to e7
P1 - Move your queen and take their pawn at e5
Checkmate