FA-82227 / Poker hand evaluation / Member archive
A-6-7-8-9 ranked as the best straight · case 02
The short-deck wheel beats broadway and six-to-ten straights.
Case contract
Input: [hand_a, hand_b], five cards each from a 36-card deck (ranks 6-A). Short-deck ranking: straight flush > quads > flush > full house > straight > trips > two pair > pair > high card. A-6-7-8-9 is the lowest straight (nine high). A card below 6 in either hand makes the result "invalid". Return 1, -1, 0 or "invalid".
Why this case matters
Short-deck tables reuse full-deck evaluators and must patch exactly these rules.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| short wheel vs six-ten | 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 ↗