Attacker's rule: get your king
in front of
your pawn. With the king on the 6th rank in front of the pawn, White wins no matter who moves.
8
7
6
5
4
3
2
1
a
b
c
d
e
f
g
h