# castle?

• 18 months ago · Quote · #1

I thought yu could not castle after you have been in check but the computer still allows it to happen?

• 18 months ago · Quote · #2

You cannot castle to get out of check.  Nor can you castle into or through check. But if you have been checked in the past you can still castle.

• 18 months ago · Quote · #3

### Castling in chess is only possible:

 If king and rook have not moved before in the game. If the king must not move to a square that is attacked by an enemy piece. If the king is not attacked by a chess piece, which means, if he is not in check. If the squares between the king and the rook are empty.
• 18 months ago · Quote · #4

people are moving   the king then back to the space,,, and then castling?

• 18 months ago · Quote · #5

If you move your king you lose the right to castle.

• 18 months ago · Quote · #6

You cannot castle at all if you King has moved, and if a Rook has moved, you cannot castle on that side.

• 18 months ago · Quote · #7

1. e4  c5  2. Nf3  d6  3. Bb5+  Black has been checked but has not lost the right to 0-0 or 0-0-0

1. f4  e6  2. g4  Qh4+  Black has been checked and HAS lost the right to

0-0 or 0-0-0. So it seems if you are checked on the 2nd move--you lose the right to 0-0 0-0-0 but if you are checked on the 3rd move--you do not lose the right to castle.

• 18 months ago · Quote · #8
John_Doe18 wrote:
Castling in chess is only possible: If king and rook have not moved before in the game. If the king must not move to a square that is attacked by an enemy piece. If the king is not attacked by a chess piece, which means, if he is not in check. If the squares between the king and the rook are empty.

You missed one John_Doe18 - the king is not allowed to move through check in order to castle !
For example, white may not castle queenside if d1 is under attack even though all other conditions are met.