When you castle do the three pawns have to be in front in chess?
No. But that is the usual reason for a King to castle (move left or right away from the center). When the King castles kingside (O-O), he arrives at KN1 (g1 or g8) behind the knight's pawn. This also develops the King's Rook.The castle queenside (O-O-O) is usually a defensive move if the kingside is under attack. Instead of moving 2 squares kingside (with rook jumping over), the king moves 2 squares toward the queenside, ending up at QB1.The player may castle at any time, provided that he has never moved the King or the Rook he is castling with. The rules of check provide that:1) The King cannot castle if he is in check2) The King cannot castle into check (final position)3) The King cannot castle "across" check (enemy attacking square the king crosses)It is, however, legal even if the rook being moved is under attack, as the King never passes or occupies the rook's position.