FAILURE MAP
← Case archive

FA-83562 / Card game rule engines / Member archive

Non-adjacent equal ranks score as pegging pairs · case 02

A five played after 5-6 pegs a pair.

Member previewVariant 2 · 3 implementations · 8 checks per implementation

Case contract

Input [cards_in_current_count, new_card]. Values A=1, T/J/Q/K=10; a count above 31 is "illegal". Points: count 15 -> 2, count 31 -> 2; the new card with the immediately preceding same-rank run scores 2/6/12; the longest trailing sequence of 3+ cards whose ranks are consecutive in any order scores its length. Return [points, count].

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
pegging case 7[2, 26][0, 26]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 ↗