FAILURE MAP
← Case archive

FA-82600 / Chess move legality / Member archive

Rook sliding two ranks creates an en passant square · case 05

Rd1-d3 next to a black pawn sets ep to d2.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input: {"board" (before the move), "rights": castling rights string or "-", "move": [from, to], "halfmove"}. Return the next {"rights", "ep", "halfmove"}: a king move removes both of its side's rights; any move from or onto h1/a1/h8/a8 removes the matching right; a pawn double step sets ep to the skipped square only when an enemy pawn stands beside the destination; the halfmove clock resets on pawn moves and captures, else increments. Empty rights render as "-".

Why this case matters

These updates decide whether castling and en passant are legal on later moves.

One recorded failure

Sample boundary fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
queen two-rank move{"ep": "d5", "halfmove": 7, "rights": "k"}{"ep": null, "halfmove": 7, "rights": "k"}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 ↗