how to permute rook and king ?

Sort:
neimadeo
Hello , I would like to know how to permute king and rook please ?
Martin_Stahl

If you are asking about how to castle then you move the king two spaces towards the rook you want to castle with, if all other castling rules are met. The system will move the rook.