FA-81940 / Poker hand evaluation / Member archive
Ace mirrored into the wrong low bit · case 05
A-2-3-4-5 in a seven-card hand is not found as a straight.
Case contract
Input: 5 to 7 distinct cards "Rs". Build a rank bitmask (bit r for rank value r, 2..14; the ace also sets bit 1). Return the top rank of the highest five-card straight contained in the ranks (5 for the wheel), or 0 if none.
Why this case matters
Bitmask evaluators are the standard fast path for seven-card hold'em straights.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| wheel in seven | 0 | 5 | 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 ↗