FA-84022 / Sports scoring and tiebreakers / Member archive
Away side credited with the home score · case 02
Away teams receive the home side goals and the wrong results.
Case contract
Round-robin football table. results rows are [home, home_goals, away, away_goals]. A win is 3 points, a draw 1. Rank by points, then goal difference, then goals scored, then head-to-head points among the teams still level on all three (only matches between those teams), then team name. Return rows [team, played, points, goal_difference, goals_for].
Why this case matters
League tables drive promotion, relegation and seeding; the tiebreaker cascade order matters.
One recorded failure
Sample boundary fixtureThis sample comes from the broken implementation of a controlled reproducer.
| Boundary fixture | Actual | Expected | Outcome |
|---|---|---|---|
| control single win | [["Ashby", 1, 3, 2, 2], ["Brent", 1, 3, 2, 2]] | [["Ashby", 1, 3, 2, 2], ["Brent", 1, 0, -2, 0]] | 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 ↗