FA-81888 / Poker hand evaluation / Member archive
Kickers are compared before the paired rank · case 03
Threes full of aces loses to kings full of deuces, and a pair of deuces with K-Q-J beats a pair of treys.
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 |
|---|---|---|---|
| pair of twos vs ace high kickers | 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 ↗