FA-85269 / Fantasy sports scoring / Member archive
Ties consume only one bonus position · case 04
After a two-way tie for first, the next player still receives 2 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: position consumption | {"ax": 1, "bo": 3, "ce": 3, "fu": 1, "gi": 3, "ho": 2} | {"bo": 3, "ce": 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 ↗