FA-84962 / Fantasy sports scoring / Member archive
Swap submitted at kickoff second accepted · case 02
A swap timestamped exactly at kickoff moves a player whose game has started.
Case contract
Apply lineup swaps [time, slot, incoming player] in time order (submission order on equal times). A swap is rejected if either the outgoing or incoming player's game has kicked off at or before the swap time, or if the incoming player already occupies another slot. Return the final lineup, the sorted indices of rejected swaps and the lineup's total points.
Why this case matters
Game-time lineup locks decide whether late swaps count; wrong lock semantics let users bench players after they score.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: kickoff instant lock | {"final": {"S1": "p0", "S2": "p1", "S3": "p6"}, "rejected": [0], "total": 48} | {"final": {"S1": "p0", "S2": "p1", "S3": "p2"}, "rejected": [0, 1], "total": 27} | 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 ↗