@mitchelljohnstone If you edit your message (press UpArrow) and insert either 4 leading spaces, or backticks (`) around your code, it will look better.
Comparing the position of the the King (⊃⍤↓) and the position of the Rooks (↑∘⊖), We can get a single result 1 or 0 from <.<. Then, grabbing the position of the bishops (↑), it get's "anded" by the prior result and added +.∧. If the rook/king comparison was 0, the ∧0 will result in 0. Otherwise, the ∧1 is an identity, so it moves onto the bishop position sum (mod 2)