castling

move your King two squares instead of one towards the rook(final position for King). The computer will move the rook for you. If it doesn't let you move the King two squares at a time, that means you already moved the King, the rook or that the square on which the King stands, or the square which it must cross, or the square which it is to occupy, is attacked by one or more of the opponent's pieces.
Hi! I am new to chess and chess.com. I am trying to castle in the game i am playing. I s there a trick to getting the computer to do this?