Did Black castle legally in my last game?


The king can not castle through an attacked square, but the rook can. A rook that is attacked by an enemy piece can still castle, just the king must remain save in its square of origin and any squares it moves through.