FAILURE MAP
← Case archive

FA-82788 / Chess move legality / Member archive

Unprotected queen cannot be captured · case 03

A queen next to the black king with the white king far away is scored as mate.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

Case contract

Input: {"wk", "wq", "bk"} squares, black to move. Return "checkmate" if black has no legal king move and is attacked by the queen, "stalemate" if it has none and is not attacked, else "ongoing". The queen attacks along ranks, files and diagonals and is blocked only by the white king; the black king may capture the queen when it is not adjacent to the white king.

Why this case matters

Game-end detection must distinguish mate from stalemate exactly.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
capture free queen"checkmate""ongoing"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 ↗