FA-85068 / Fantasy sports scoring / Member archive
Captain also rostered as a flex player · case 03
A lineup lists the same quarterback as captain and flex and earns 2.5x his points.
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 fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: captain duplicated in flex | {"points": 3521, "reason": "cap", "salary": 52000, "valid": false} | {"points": 3521, "reason": "roster", "salary": 52000, "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 ↗