Castling can be done only when there are no parts among the king and also the rook you'll shift. The king and rook are not able to have moved previously. You cannot castle If the king is in Examine or if doing so would shift your king by or to some square where he would be in Look at. Thanks! We're glad this was useful.Fifty-shift rule: If in the p