A discovered check is a discovered attack on the king. The moving piece can go anywhere, because the opponent must deal with the check first.
8
7
6
5
4
3
2
1a
b
c
d
e
f
g
h