FAILURE MAP
← Case archive

FA-85069 / Fantasy sports scoring / Member archive

Captain also rostered as a flex player · case 04

A lineup lists the same quarterback as captain and flex and earns 2.5x his points.

Member previewVariant 4 · 3 implementations · 7 checks per implementation

Case contract

A single-game lineup has one captain and five flex players. The captain costs 1.5x salary rounded up to the next 100 and scores 1.5x points (hundredths, rounded half away from zero). Validation order: exactly five flex players and six distinct names (roster), salary total at most the cap (cap), players from at least two teams (teams). Return validity, first failing reason, salary and points.

Why this case matters

Captain multipliers on both salary and points are where showdown contest lineups are mispriced or wrongly rejected.

One recorded failure

Sample boundary fixture

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

Boundary fixtureActualExpectedOutcome
regression: captain duplicated in flex{"points": 3578, "reason": "teams", "salary": 58600, "valid": false}{"points": 3578, "reason": "roster", "salary": 58600, "valid": false}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 ↗