If it is Black's turn to move here, White wins. If White to move, the game is uselessly prolonged or ends in a Stalemate as shown above.
From these considerations the strategy of play of King plus Pawn versus King can be deduced. But the Pawn on the borderlines makes an exception; in its case the Opposition has no value. Assume White Pawn QR5, White King QR6, Black King QR1. Black moves K-X1, and White, not being able to advance on to the seventh row, has gained nothing. The boundary protects Black. White can never drive the King out of the corner. If White cuts off the mobility of the Black King, it flies to the corner and is there Stalemated.