But if you have a later board state, with two rooks on one side: how do you know which one is still eligible to castle?
Reply on news.ycombinator.com