FAILURE MAP
← Case archive

FA-83519 / Card game rule engines / Member archive

Reverse moves play in the old direction first · case 04

After a reverse the next player is the one in the old direction.

Member previewVariant 4 · 3 implementations · 8 checks per implementation

Case contract

Input [players, current, direction(+1/-1), card]. Reverse flips direction (with two players it acts as skip); skip jumps one player; draw2/wild4 make the next player draw 2/4 and lose their turn. Return [next_player, direction, draw_count, victim_or_None].

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
turn case 2[1, 1, 0, null][0, 1, 0, null]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 ↗