FA-83710 / Card game rule engines / Member archive
Each player receives the whole pattern before the next player is served · case 05
In a 3-2 deal the first player gets five consecutive cards.
Case contract
Input [players, dealer, batch_pattern, deck]. For each batch size in order, deal that many cards to each player starting left of the dealer (dealer+1) clockwise. Remaining cards form the kitty. Return [hands_by_seat, kitty].
Why this case matters
Card-game engines, scoring apps and online tables apply this rule automatically on every hand.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| deal case 0 | [[["5S", "2H", "JH", "2D", "4S"], ["TC", "7S", "AH", "2C", "5C"], ["4D", "7H", "6C", "KC", "TH"], ["4C", "JC", "4H", "7D", "QS"]], []] | [[["7D", "QS", "5S", "5C", "4D"], ["2H", "JH", "2D", "7H", "6C"], ["4S", "TC", "7S", "KC", "TH"], ["4C", "JC", "4H", "AH", "2C"]], []] | 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 ↗