FAILURE MAP
← Case archive

FA-81905 / Poker hand evaluation / Member archive

A paired hand spanning four ranks becomes a straight · case 05

5-5-6-7-9 is scored as a straight and beats ace high.

Member previewVariant 5 · 3 implementations · 8 checks per implementation

Case contract

Input: [hand_a, hand_b], each five distinct cards "Rs" (ranks 23456789TJQKA, suits cdhs). Return 1 if hand_a wins, -1 if hand_b wins, 0 for a split. Categories rank in the standard order; within a category compare rank groups by (group size, rank) descending; a wheel straight is five-high; suits never break ties.

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 fixture

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

Boundary fixtureActualExpectedOutcome
paired span vs two pair1-1Failed

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 ↗