FA-82214 / Poker hand evaluation / Member archive
Full house kept above flush in short deck · case 04
Kings full of sevens beats an ace-high flush.
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 |
|---|---|---|---|
| flush beats full house | -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 ↗