FAILURE MAP
← Case archive

FA-81900 / Poker hand evaluation / Member archive

Straight ranked above flush · case 05

A king-high straight beats a king-high flush.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input: [hand_a, hand_b], each five distinct cards "Rs" (ranks 23456789TJQKA, suits cdhs). Return 1 if hand_a wins, -1 if hand_b wins, 0 for a split. Categories rank in the standard order; within a category compare rank groups by (group size, rank) descending; a wheel straight is five-high; suits never break ties.

Why this case matters

Poker engines settle real money pots from these comparisons; a single misranked hand pays the wrong seat.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
flush beats straight-11Failed

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 ↗