FA-85272 / Fantasy sports scoring / Member archive
Players with no performance index receive bonus · case 02
In a low-scoring match a player with index 0 is awarded 1 bonus.
Case contract
Allocate bonus points from a per-match performance index: rank players by index descending; positions 1, 2, 3 earn 3, 2, 1. Tied players all receive the award of the first position their group occupies and consume as many positions as the group size, so a two-way tie for first earns 3 each and the next player 1. Players whose index is 0 or below never receive bonus. Return name -> bonus for awarded players.
Why this case matters
Bonus allocation with ties is a compact but contested rule in football fantasy games.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: non-positive index | {"di": 2, "ek": 1, "gi": 3} | {"gi": 3} | 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 ↗