Castling
Castling is a move in the game of chess involving a player's king and either of the player's original rooks.
It is the only move in chess in which a player moves two pieces in the same move, and it is the only move aside from the knight's move where a piece can be said to "jump over" another.
Castling consists of moving the king two squares towards a rook on the player's first rank, then moving the rook to the square over which the king crossed.
Castling can be done on the Kingside (annotated as “0-0”) or Queenside (annotated as “0-0-0”)
Castling can only be done IF:
The king has never moved
The rook involved has never moved
The squares between the king and the rook involved are unoccupied
The king is not in check
The king does not cross over or end on a square attacked by an enemy piece
Examples when your king cannot castle!
Castling can only be done IF:
The king has never moved
The rook involved has never moved
The squares between the king and the rook involved are unoccupied
The king is not in check
The king does not cross over or end on a square attacked by an enemy piece