FAILURE MAP
← Case archive

FA-82354 / Chess move legality / Member archive

Knight captures its own side but not the enemy · case 04

The knight may land on a friendly bishop but not capture an enemy pawn.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input: {"board": {square: piece}, "from": square of a knight}. Squares are indexed 0..63 with a1=0, h1=7, a8=56. Return the sorted list of pseudo-legal knight destinations: on the board, not wrapping across the a/h file edge, and not occupied by a piece of the knight's colour.

Why this case matters

Move validators gate every move in engines, servers and arbiters; accepting an illegal move or rejecting a legal one corrupts the game record.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
centre with own and enemy["b3", "b5", "c2", "e2", "e6", "f3", "f5"]["b3", "b5", "c2", "c6", "e2", "f3"]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 ↗