logoalt Hacker News

cestithlast Friday at 8:39 PM0 repliesview on HN

It would be if castle is available, not simply if the rook has never moved.

Likewise, the position of a pawn can be assigned the king’s position if it has made the double move. You know it’s actually in the legal file and in which rank it sits after the move.