FA-82759 / Chess move legality / Member archive
Black rights looked up on rank 1 · case 04
Black file letters never map to rooks on rank 8.
Case contract
Input: {"board", "rights"}: rights letters are K/Q (outermost own rook on the back rank on the king's h-side / a-side), file letters A-H or a-h (the own rook on that file), or "-". A right only counts if the king is on its back rank (rank 1 for white, 8 for black) and the rook exists. Return the sorted distinct list of rook squares that carry castling rights.
Why this case matters
Chess960 and X-FEN positions encode castling by rook file; a wrong mapping castles with the wrong rook.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| standard KQkq | ["a1", "h1"] | ["a1", "a8", "h1", "h8"] | Failed |
MEMBER ARCHIVE
The complete case is available to members.
This record includes three runnable implementations, regression fixtures, execution results, and source hashes.
Member access is invitation-based. Sign in with your invited account to inspect the sources.
Sign in to the archive ↗