When a piece attacks the king, the king is in check. The player in check must get out of it right away.
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h