logoalt Hacker News

vntoklast Friday at 7:28 PM2 repliesview on HN

If the rook has the king's position, it's never moved. As soon as it moves, it can have any position except the king's.


Replies

tromplast Friday at 7:56 PM

To make this work, the rook can only have the king's position, if neither the king nor that rook have moved.

show 1 reply
cestithlast Friday at 8:39 PM

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.