Matchday Picks
A football prediction pool that can change tournaments without changing its game.
A 2–1 pick for a final that ends 2–1 earns 11 points.
See the arithmetic
3 for picking the winner, 5 for the exact score, and 1 each for the goal difference and both teams’ goal totals.
A prediction pool is a lovely small institution. A few people agree to write down what they think will happen, then football supplies the correction.
Guillermo Acuña built the original pool for the 2026 World Cup. I forked it and worked on the parts that another organizer would need to change. The resulting edition is open source under the MIT license.
One decision that mattered
Changing the title was easy. A much quieter assumption lived in the knockout bracket. In a single-match tie, one score can tell you who advances. In a two-leg tie, the team that wins on Tuesday can still be the team that goes home.
The fixture now names the matches that settle a slot. The following miniature is enough to exercise the distinction.
| Match | Score |
|---|---|
| Puerto at home against Valle | 2–0 |
| Valle at home against Puerto | 2–0 |
| Second-leg penalties | Valle 5–4 Puerto |
Valle advances. Each leg still has its own prediction and its own points.
Under the bonnet
The application uses Next.js, TypeScript and PostgreSQL. An organizer describes the tournament in JSON, then imports a fixture or enters matches by hand. Club leagues can share a table. International tournaments can have separate groups. Draws and competition-specific tiebreakers stay in the organizer’s hands.
I exercised both example formats against PostgreSQL and reimported the historical 104-match fixture. The check I particularly wanted was mundane: import a calendar twice and keep the prediction somebody already took the trouble to make.
Run your own pool
The repository includes a Spanish setup guide, a small club fixture and a small national-team fixture. The two small fixtures are fictional. Bring the dates and participants for the edition you intend to play.