8

I was reading about FEN notation, and noticed the following line in the relevant Wikipedia article:

If neither side can castle, this is "-". Otherwise, this has one or more letters: "K" (White can castle kingside), "Q" (White can castle queenside), "k" (Black can castle kingside), and/or "q" (Black can castle queenside).

Why do we need to mark the ability to castle each side separately? I can't imagine a circumstance where one would be able to castle kingside, but not queenside unless the reason you can't do one is because it would be illegal to castle in one of the directions. But if this is the only reason, why would this need to be documented when recording a game in FEN? Maybe there is something about castling I'm misunderstanding.

8

If one of the rooks has moved from its starting position, it is no longer legal to castle with that rook.

For example, if white plays 1. a4 2. Ra3 3. Ra1, white can no longer castle long, even though the king and rook are both in their normal positions.

For this reason, the FEN string must encode whether or not castling is legal (because both king and rook can be on the proper squares, but castling can still be illegal).

  • Thank you. I figured there was just some small technicality I was forgetting. – SL2 Feb 16 '13 at 3:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.