King & Rook


You can only castle if:
-You haven't moved your king yet
-you haven't moved the rook you want to castle with yet
-The spaces between the rook and the king are totally empty
-the spot where the king will end up if it castles isn't being attacked by an opponent's piece