FootballEngine is a free, open source football management game. You run a club: pick the tactics, plan the training, buy and sell players, keep the board happy. Each match is simulated player by player, and you can watch it in 3D, step in from the touchline and replay it afterwards to see where it was won or lost.
goal-1080-14m.mp4
In development. You can start a career and play a full season, but plenty is missing and some of it is rough. The first public demo is planned for January 2027. See Where it stands.
The match · A week at the club · Where it stands · Running it · Contributing · License
There is no hidden dice roll for the score. Twenty two players perceive the pitch, choose what to do and move, 40 times a second, and the ball is a physical object with spin, bounce and drag. Your tactics set the frame those choices are made in, so a change at half time shows up in where the players stand and what they try.
Fatigue does more than slow a player down: a tired player sees less, decides worse and stops pressing. The full back you left on for 90 minutes is still there in the replay, a step behind.
A match is deterministic. The same inputs, seed and decisions on the same processor architecture produce the same match, which is how replays work: we keep the inputs, not a video, and play the match again up to the moment you ask for. It also means a strange match can be reported with its seed and reproduced exactly.
The clips below are replays of seeded matches, rendered by the game in 4K and published in 1080p at 60 frames per second. The viewer only draws what the engine decided.
goal-touchline-1080-max.mp4
save-broadcast-1080-max.mp4
Each club's ground is generated from its size, reputation and colours. This one seats 93,456 under a roof.
There are five cameras: broadcast, tactical, behind the goal, touchline and close up. After the match, a timeline marks goals, saves, set pieces, cards and substitutions, and you can jump to any of them.
These screens come from a real career a few weeks into the season.
Your desk · Tactics · Squad · Training · Scouting · Transfers · Finances · Board, news and inbox · Calendar · Mod editor
The week starts with the next opponent. Their manager has a personality, a record against you and notes on your last ten matches; keep winning the same way and they will prepare for it. The page also tells you whether your lineup is ready and which messages need an answer. Time moves a day at a time and stops for a decision, an unavailable player or your match. It never plays your match for you.
Pick a shape, place your eleven and name the bench. Each player shows how well they fit the role and how fresh they are. A familiarity bar shows how well the team knows the shape, so rebuilding everything the day before a match costs you.
Group the squad by line, level, age or value, with condition and morale on every row.
Choose the week's emphasis and a plan for each player: young players develop, tired ones rest, the first eleven sharpens. Before you commit, the page shows how fresh your eleven will be on match day and how much injury risk you are taking.
You never see a player's true ability. Send a scout, pay for the trip and wait for the report: it gives a range and a confidence, and a better scout narrows both.
Search players, follow targets, make offers and track deals both ways. Other clubs do not buy yet, and some of your offers will go unanswered.
Clubs earn from television, sponsors, gate receipts and end of season prize money. The board sets your wage and transfer budgets from what the club expects to earn. Every payment goes through the ledger, and money is reserved before a deal closes so it cannot be spent twice. Run up too much debt and the club falls into a crisis, and the press hears about it.
The board compares your results with the season objective. Supporter mood moves with every match.
News covers your club, your league and the rest of the world, written from what actually happened.
Messages that need you are marked for review.
Fixtures and results from the first round to the last. Cup draws are made round by round among the clubs still in.
Start a world from scratch, or edit a copy of a built in country and leave the original alone. The built in world uses the same format, so the editor edits exactly what the game plays.
Set clubs, kits, reputation and squads. You can paste a squad from a spreadsheet; players you leave out are generated when a career starts.
Leagues stack into a pyramid, each with its own points rules.
Publishing runs the same checks the game runs when it loads a mod.
You can start a career, play a season, watch your matches in 3D and replay them. Here is what is in and what is not.
| Area | Works | Missing |
|---|---|---|
| Match | Full simulation with ball physics, contacts, refereeing and replays | Deeper perception; fatigue that decides matches more often |
| Your control | The plan before kickoff, mentality and substitutions | Live formation changes, touchline instructions, set piece routines, opposition instructions |
| Rival managers | Personalities, a memory of you and a plan before each meeting | Reacting to your changes during the match |
| World | Calendar, cups, training, youth, economy, board, news and jobs | A transfer market where other clubs act, loans, contract clauses |
| People | Morale, stories and a memory of results | Press conferences, conversations, promises |
| Viewer | Five cameras, generated stadiums, animated players | Crowd, slow motion, weather, night games, club badges, Windows support |
| Mods | Create, edit, check and publish worlds locally | Sharing online, deeper competition editing |
The players, animations and stadium are built in Blender and still look unfinished up close. The built in world has 30 countries, five in each confederation, each with three or more divisions. England, Spain, Argentina and Brazil use real club names in their top two divisions for testing; every other club is invented and named after a real place. The released game will have a world of its own, and the mod editor is there for anyone who wants their own leagues.
The roadmap lists what comes next. The architecture vision goes through each area in detail, gaps included.
There are no builds to download yet, so you run it from source.
Requirements
- The .NET 10 SDK (
global.jsonpins the exact version). - For the 3D match viewer: Linux with X11 or XWayland. Windows and macOS are not supported by the viewer yet.
Build and play
git clone https://github.com/DeltaBitsSystem/FootballEngine.git
cd FootballEngine
dotnet run --project FootballEngine.Client/FootballEngine.Client.fsproj -c ReleaseTests
dotnet fsi scripts/test.fsxThere are 1,816 automated tests. They are Expecto executables, so dotnet test is not the command; docs/TESTING.md has the details. The numbers are under Performance.
The game is written in F# on .NET 10, with Avalonia for the interface, WebGPU for the match viewer and SQLite for saves. It runs offline, with no accounts or servers.
Every number below was measured on one desktop, December 2026, unless a row says otherwise. Run the command beside a section to measure it on your machine.
| Reference machine | |
|---|---|
| CPU | AMD Ryzen 5 5600X, 6 cores, 12 threads |
| Memory | 16 GB |
| Runtime | .NET 10, Release build |
dotnet fsi scripts/dev.fsx profile plays one full match without a viewer, after two warm-up matches.
| One match | |
|---|---|
| Time to simulate | 3.5 s on one core |
| Simulation steps | 258,642, one every 1/40 of a second of play |
| Time per step | 13.5 µs |
| Systems that run each step | 26 |
| Memory allocated | 279 MB |
| Garbage collector pauses | 40 ms |
| Jumping to any moment of a replay | 6 s at most (measured November 2026) |
Where the 3.5 s go:
| System | What it does | Share of the match |
|---|---|---|
| ContactDynamics | Bodies colliding, shielding and tackling | ██████████████ 28 % |
| AerialPlay | Long balls, headers and players reading the flight | ███████▌ 15 % |
| PlayerSteering | Turning intentions into running | ████▌ 9 % |
| TeamPosition | The team's shape around the ball | ████▌ 9 % |
| PlayerDecision | What each player chooses to do | ████▌ 9 % |
| The other 21 systems | Ball, referee, restarts, keepers, manager | ██████████ 20 % |
| Stepper and events | Running the systems in order | █████ 10 % |
Determinism. The same seed gives the same match, event for event. dotnet fsi scripts/dev.fsx hash replays the tuning seeds and prints one hash; it reads 005e2ac35511f7a8 for this version on x64.
Not yet where it should be. dotnet fsi scripts/dev.fsx perf holds the profile to perf/budget.txt, and the match is over that budget: 3.5 s against 3.1 s, and 279 MB against about 100 MB. Most of the extra memory is in AerialPlay (107 MB) and RestartController (67 MB), which grew with the long ball and set piece work of late November.
dotnet run --project Training/Training.fsproj -c Release -- validate plays 8 matches in 12 s and compares them with top league averages.
| Per match | Simulated | Real target | Accepted range | |
|---|---|---|---|---|
| Goals | 1.1 | 2.7 | 1.7 to 4.5 | ❌ |
| Shots | 5.1 | 28.0 | 20 to 36 | ❌ |
| Pass accuracy | 76 % | 81 % | 72 to 90 % | ✅ |
| Fouls | 22.6 | 23.0 | 14 to 32 | ✅ |
| Yellow cards | 4.1 | 5.0 | 2 to 8 | ✅ |
| Corners | 3.8 | 10.5 | 7 to 14 | ❌ |
| Offsides | 1.9 | 3.5 | 1 to 6 | ✅ |
| Possession | 50 % | 50 % | 30 to 70 % | ✅ |
Five of eight statistics are in range. Teams shoot far too rarely, and the shots they take go in more than twice as often as real ones (24 % against about 11 %). Recalibrating attacking play is open work.
dotnet Training/bin/Release/net10.0/Training.dll world-bench 1 <countries> generates a world and runs the same daily loop the game runs: every league, cup, transfer window, training week, budget, board and news story, with every match simulated by the quick match model. Seed 7.
The built in world, 30 countries:
| Clubs | 1,424 |
| Players | 50,475 |
| Generating the world | 2.1 s |
| One full season | 92.5 s, about a quarter of a second per day |
| The first 100 days | 16.5 s |
How the first 100 days grow with the world:
| Countries | Clubs | Players | 100 days | |
|---|---|---|---|---|
| 5 | 309 | 10,992 | 11.3 s | ███████████ |
| 10 | 568 | 20,158 | 12.0 s | ████████████ |
| 20 | 1,044 | 37,071 | 14.3 s | ██████████████ |
| 30 | 1,424 | 50,475 | 16.5 s | ████████████████▌ |
Six times the world costs one and a half times the time: most of a day is fixed work, and each new country adds about 0.2 s per 100 days. That is measured up to 30 countries; larger worlds have not been tried.
The world loop was rewritten for speed in December 2026. For 100 days of the 30 country world:
| Time | Memory allocated | ||
|---|---|---|---|
| Before | 558 s | 2,366 GB | ██████████████████████████████████████████████████ |
| After | 16.5 s | 16 GB | █▌ |
That is 34 times faster, with 148 times less memory allocated.
The largest single gain came from identifiers: PlayerId, ClubId and the rest became plain integers with a unit of measure, still distinct types to the compiler, which roughly halved the memory the world allocates. Each optimisation was checked by comparing a digest of the final world (results, money, careers and news) with the code before it; they matched.
Not yet where it should be. A full season allocates 133 GB in total, because the world state is made of immutable maps that are copied as they change. About a tenth of the run is garbage collection, and several daily phases still run on one thread.
dotnet fsi scripts/test.fsx runs every suite.
| Suite | Tests | Time |
|---|---|---|
| Core: domain, world and match engine | 1,336 | 3 min 2 s |
| Client: saves, interface, live match and viewer contracts | 480 | 49 s |
| Total | 1,816 | about 4 min |
--fast leaves out the suites that play full matches or seasons, for the edit loop.
| Project | F# files | Lines |
|---|---|---|
| Core: domain, world and match engine | 211 | 71,164 |
| Client: interface, saves and 3D viewer | 147 | 51,633 |
| Tests | 172 | 62,489 |
Bug reports, ideas and pull requests are welcome. If a match does something strange, open an issue with the match seed: every match can be replayed exactly, so we can see what you saw.
CONTRIBUTING.md explains how the code is organised and where each kind of change belongs. Open an issue before starting anything large, since the design still moves fast.
The code is released under the GNU GPL 3.0. Most 3D assets are generated by our own Blender scripts. The player body is adapted from MakeHuman's CC0 assets, and player motion comes from the CMU Graphics Lab Motion Capture Database (mocap.cs.cmu.edu, created with funding from NSF EIA-0196217). Sources, licences and hashes for every asset are in LICENSES.md.
















