BTW, not trying to outsmart you, I genuinely thought there need to be restrictions and you have to tell me which. Now I think it's no-three-in-a-line or equivalently, extend the no blocked positions condition to occupied positions. It doesn't seem true for small n, though. Trivial cases (n=2) aside, there is
. . X .
X . . .
. . . X
. X . .