The Rook is a piece that can move only in straight lines.
A Rook can move from a square to another square only if the following condition is met:
This means it can move either vertically (up or down) on the same file, or horizontally (left or right) on the same rank.