 If the player touches their rook at the same time as touching the king, they must castle with that rook if it is legal to do so.If the player completes a two-square king move without touching a rook, the player must move the correct rook accordingly if castling on that side is legal.Otherwise, the move must be withdrawn and another king move made.