castling
Castling is a special move in chess that involves the king and a rook moving as a pair to improve king safety and activate the rook. In the move, the king travels two squares toward the chosen rook, and the rook then moves to the square immediately next to the king on the opposite side.
Castling has specific conditions. It may be performed only if neither the king nor the chosen rook
There are two forms: kingside (short) castling and queenside (long) castling. In standard notation, they are written
Rights to castle are tracked separately for each side and can be lost if the king or