Loading your lessons…
The king and rook must retain castling rights, with a clear path. The king cannot start in, cross or enter check.
Castling is one special move involving the king and a rook: the king moves two squares towards the rook, which moves to the square the king crossed.
Neither may have moved before, the path must be clear, and the king’s starting, crossing and finishing squares must be unattacked.
Returning a moved piece does not restore the right.
Castling moves the king two squares and brings the rook beside it.
The lesson has White’s king e1, rook h1 and Black’s king e8, with White to move and kingside castling rights retained.
f1 and g1 are clear and safe, so the king moves e1–g1 and rook h1–f1 together: O-O.
Select the king’s move; the rook follows within the same turn.
A safe g1 is not enough.
In the lesson’s comparison, Black’s rook on f8 attacks f1, which the king must cross, so castling is illegal.
Another task has the same piece placement but no castling right; original squares alone do not prove eligibility.
Compare the legal diagram with the lesson’s f8-rook diagram. Check movement history, clear path and all three king squares.
In the legal position complete king-to-g1 and rook-to-f1 as one move, then reset.
Keep a written movement-history note with a physical board.