FAILURE MAP
← Case archive

FA-83709 / Card game rule engines / Member archive

Each player receives the whole pattern before the next player is served · case 04

In a 3-2 deal the first player gets five consecutive cards.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
deal case 0[[["2S", "5S", "QD", "QS", "TH"], ["JS", "5H", "2H", "4D", "6C"], ["5C", "AD", "8D", "3S", "TC"], ["4C", "KS", "9H", "QH", "TD"]], ["3H", "7C", "7D", "JC"]][[["2S", "5S", "4D", "6C", "KS"], ["QD", "QS", "5C", "AD", "9H"], ["TH", "JS", "8D", "3S", "QH"], ["5H", "2H", "TC", "4C", "TD"]], ["3H", "7C", "7D", "JC"]]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 ↗