FA-81864 / Poker hand evaluation / Member archive
Two-character ten token crashes rank parsing · case 04
Hands containing "10h" fail to evaluate while "Th" works.
Case contract
Input: five distinct cards as rank+suit strings; ranks 2-9, T or 10, J, Q, K, A (case-insensitive), suits c/d/h/s (case-insensitive). Return the standard five-card category name in lower case; A-2-3-4-5 is a straight; royal flush is reported as "straight flush".
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 |
|---|---|---|---|
| ten written as 10 | "error:ValueError" | "straight" | 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 ↗