Prevent gating on castling target squares
authorFabian Fichter <ianfab@users.noreply.github.com>
Wed, 18 Nov 2020 19:20:52 +0000 (20:20 +0100)
committerFabian Fichter <ianfab@users.noreply.github.com>
Wed, 18 Nov 2020 19:20:52 +0000 (20:20 +0100)
commit186eeb0a56c942da54f77d53a7eb1e2ce067e13b
tree07b938f69317b13dc68640e54d4fefef7d446ed4
parentc8879ef04c6a5f75c577b2a883fee32f51664e30
Prevent gating on castling target squares

Validate whether the gating square will be blocked
by king or rook after castling.

Closes #207.
src/position.cpp