Skip to content

About

Stoppage Time — a soccer 2-minute drill: take over real matches in their final minutes and make the calls. Built on StatsBomb open data.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stoppage Time

A soccer version of the "2 minute drill" idea: you take over a real match in its final minutes — real teams, real players, real score, real clock — and make the calls. Every call is graded on the win chance it left you with, not on whether it happened to work.

Single self-contained file: stoppage-time.html (open it in any browser, no server needed).

What is in the game

15 real endings, taken from StatsBomb open event data (2005–2025):

  • Champions League 2005 final — Liverpool 0-3 down in Istanbul
  • Champions League 2005 final — Milan 3-3, the other half of the same night
  • Chelsea v Bayern, Real Madrid v Atlético, Argentina v France (2022 final), Argentina v Netherlands, France v Argentina (extra time), England v Slovakia, England v Netherlands, Croatia v Italy, France v Switzerland, Spain Women v Sweden Women, Argentina v Colombia, Côte d'Ivoire v Mali, England Women v Spain Women

Three modes: Daily (one ending a day), Survivor (win to keep going), Endings (every match, plus your history).

How a call is graded

Each turn you get the plays available in that situation — on the ball or off it — grouped as BUILD / GO / FORCE / GAMBLE / MANAGE. Choosing a call plays the spell out with real players and real events from that match, then the rest of the game is folded in from the resulting state. Your call is compared with the best option you had:

  • the grade chip is the win chance you left on the table (relative to the best call)
  • the small number is how the spell actually moved your win chance

The score at the end is your calls against a field of 160 simulated managers, plus a lift for the result. What actually happened in the real match does not change the grade — it is shown at the end for comparison.

Files

  • stoppage-time.html — the built game (everything inlined)
  • web/index.html, web/style.css, web/app.js — sources
  • data/spots.json — the 15 endings: lineups, goals, cards, subs, event libraries
  • extract.py — pulls compact match data out of StatsBomb event files
  • prepare.py — builds data/spots.json (spot table is at the top of the file)
  • build.py — inlines CSS, JS and JSON into the single HTML file

Rebuild after editing sources:

python3 build.py

extract.py expects the raw StatsBomb event JSON in events/ (not committed; download from the statsbomb/open-data repo).

Data and attribution

Situations, players, pitch positions and event text come from StatsBomb open data. The model, ratings and grading are ours. Not affiliated with or endorsed by any club, league, federation or competition.

About

Stoppage Time — a soccer 2-minute drill: take over real matches in their final minutes and make the calls. Built on StatsBomb open data.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages