FA-85248 / Fantasy sports scoring / Member archive
Outfield bench player replaces a goalkeeper · case 03
When the starting goalkeeper does not play, a benched striker takes his place.
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: goalkeeper-only replacement | ["b1", "def0", "def1", "def2", "mid0", "b2", "mid2", "mid3", "fwd0", "fwd1", "fwd2"] | ["gk1", "def0", "def1", "def2", "mid0", "b1", "mid2", "mid3", "b2", "fwd1", "fwd2"] | 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 ↗