Castling is done automaticly done if you move the King 2 squares to the side.

Before a "short" castling:

After a "short" castling:

Roules for castling.

1. The King and Rook that you want to use in the castling, must never have be moved during the game.

2. The King must not be under attack, i.e. you can not do a castling to get "out of a check".

3. The squares between the King and the Rook must be clear.