Rules on castling, what is allowed I have learned about a move called castling, where you move the castle and the king to switch. Can anybody explain the rules? Thanks.
Castling is done by moving the King two squares towards the Rook, and then placing the Rook on the square that the King skipped over. In order to castle, all of the following must be true.


It's your turn.
The squares between your King and your Rook are all unoccupied.
You have not yet moved your King.
You have not yet moved the Rook that you are using to castle.
You are not currently in check.
You will not end up in check.
The square that your King passes through must not be under attack by an enemy piece (in other words, your King will not pass through check).