FA-84095 / Sports scoring and tiebreakers / Member archive
Games behind measured from the team with most wins · case 05
Games behind is computed from the team with the most wins rather than the best percentage.
Case contract
Division standings. teams rows are [name, wins, losses]. Win percentage is wins / games (0 for no games) shown with three decimals and the leading zero dropped (".500", but "1.000"). Sort by win percentage, then more wins, then name. The leader is the first sorted row; games behind = ((leader_wins - wins) + (losses - leader_losses)) / 2, shown as "-" when zero and otherwise with one decimal (negative values allowed). Return [name, pct, gb] rows.
Why this case matters
Standings pages and playoff-race widgets print win percentage and games behind.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| regression: leader selection | [["Wolves", "1.000", "-2.0"], ["Bucks", ".767", "-"], ["Jets", ".667", "4.5"], ["Cats", ".400", "10.0"], ["Suns", ".368", "10.5"]] | [["Wolves", "1.000", "-"], ["Bucks", ".767", "2.0"], ["Jets", ".667", "6.5"], ["Cats", ".400", "12.0"], ["Suns", ".368", "12.5"]] | 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 ↗