Input (grade 12): The rook moves horizontally or vertically, forward or back, through any number of unoccupied squares, as shown in the diagram.
Output (grade 8): The rook moves forward or back through any number of squares without other pieces on them, as shown in the diagram.