FAILURE MAP
← Case archive

FA-84038 / Sports scoring and tiebreakers / Member archive

Head-to-head compares goals instead of points · case 03

A team that lost a head-to-head match on points is ranked above its rival by goals.

Member previewVariant 3 · 3 implementations · 8 checks per implementation

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 fixture

This sample comes from the broken implementation of a controlled reproducer.

Boundary fixtureActualExpectedOutcome
regression: head to head metric[["Epsom", 2, 4, 1, 1], ["Ashby", 1, 1, 0, 0], ["Brent", 1, 1, 0, 0], ["Corby", 1, 1, 0, 0], ["Dover", 1, 0, -1, 0]][["Epsom", 2, 4, 1, 1], ["Ashby", 1, 1, 0, 0], ["Corby", 1, 1, 0, 0], ["Brent", 1, 1, 0, 0], ["Dover", 1, 0, -1, 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 ↗