how to switch tower and king?


there are rules
1. its called castling
2. click you king and move it 2 space to the side your castling the rook goes next to the king(on the other side)
3. if any of the space you are castling with are in danger of an opponent piece then you can not castle
4. if your king is in check you can't castle
I think thats it
there are rules
1. its called castling
2. click you king and move it 2 space to the side your castling the rook goes next to the king(on the other side)
3. if any of the space you are castling with are in danger of an opponent piece then you can not castle
4. if your king is in check you can't castle
I think thats it
5. Neither the king nor the rook to do castling with has moved in the game anywhere.
6. It must be a rook in the same rank as the first king (so castling with a promoted rook on the e-file is not permitted even though the newly promoted rook has not moved yet).
You have to move the king 2 spaces toward a rook on the same rank to do it
https://en.m.wikipedia.org/wiki/Castling
the requirements are:
1. Neither the king nor the rook has previously moved.
2. There are no pieces between the king and the rook.
3. The king is not currently in check.
4.The king does not pass through or finish on a square that is attacked by an enemy piece.
Please note the rare weird case that even if b file square is threatened, queenside castling is allowed

In 960 chess its slightly more complicated, but yes, essentially that's it.
BTW, I like to consider a variant of chess I call "castle chess". (I did not invent it.) It's exactly like standard chess, but if Black manages to castle long they instantly win if they make this move (... OOO); if they lose the right to do so (e.g., if king or rook on a8 must move or is captured), they lose. Can anyone prove that a there is a forced win for black or white?