A rook moves any number of squares in a straight line — horizontally along ranks or vertically along files — provided nothing blocks the way. Rooks are strongest on open files (with no pawns) and on the 7th rank. They also take part in castling, the only move where a rook and king move together.