FA-81884 / Poker hand evaluation / Member archive
Wheel outranks a six-high straight · case 04
A-2-3-4-5 beats 2-3-4-5-6 at showdown.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| wheel vs six-high straight | 1 | -1 | 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 ↗