FA-85255 / Fantasy sports scoring / Member archive
Bench priority ignored in favor of most minutes · case 05
The manager's first bench choice is skipped for a player with more minutes.
Case contract
Starters who played 0 minutes are replaced in starter order. A goalkeeper can only be replaced by the bench goalkeeper (bench[0]) and only if he played. An outfield starter is replaced by the first outfield bench player in bench order who played and is not already used, provided the XI with the candidate in place keeps at least 3 DEF, 2 MID and 1 FWD. Return the final XI in starter-slot order.
Why this case matters
Automatic substitutions decide which bench points count; order, goalkeeper and formation rules are frequently misapplied.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: bench priority order | ["gk1", "def0", "def1", "def2", "def3", "b1", "mid1", "b2", "mid3", "fwd0", "fwd1"] | ["gk1", "def0", "def1", "def2", "def3", "b0", "mid1", "b1", "mid3", "fwd0", "fwd1"] | 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 ↗