Anu Gnana

EA FC agent

An agent that plays EA FC on an unmodified PS5 through a software perception, decision and action loop. Teaching it is the point: scripted logic is only scaffolding, and the investment goes into learning from demonstrations of the owner's own play.

In development. Its first live matches were played offline, against the CPU, with the owner watching. The repo is private.

A match in EA FC in High Contrast Mode: a grey pitch, the two teams in flat pink and cyan, and the radar of player positions at the foot of the screen, which the agent reads
A match in High Contrast Mode, with the radar the agent reads at the foot of the screen. From the project's repo.

The problem

The console is a sealed appliance: no API, no memory access, no mods. It offers exactly the two interfaces it gives a person, video out and controller in, so the agent has to see the way a player sees and act the way a player acts. And the game runs at 60 frames a second whether the agent is ready or not, with no pause, no reset, no parallel copies and no speed-up.

Capture: eyes and hands kept apart

Keeping the two apart gives them independent failure modes, so bring-up debugs one at a time. The Linux server runs the loop, because uinput and v4l2 are Linux-only; a Mac does the training.

Perception: the radar first

The game draws its own top-down radar: every player and the ball as small marks. The agent parses it with classic computer vision, geometry first. Every mark is measured — its area, fill, circularity and holes — and classified by shape; colour decides only which team it belongs to. Colour alone could not separate what shape can, because the game fades the radar as play moves down the screen.

The game's own accessibility settings did the rest: High Contrast Mode with the pitch saturation at its minimum turns the radar's background grey (its median saturation measured 156 before and 0 after), and moving the opponents' radar colour off red keeps them apart from the selected-player ring. In the first live matches, the radar was read on 99.5% of ticks in open play.

State: one vector

What perception hands on is not raw detections but a 116-number state vector centred on the player being controlled: that player, the ball, the five nearest opponents and six nearest team-mates with their velocities from a frame-to-frame tracker, a summary of team shape, and the match context. It is always oriented as if attacking to the right, and mirrored copies double the training data. The layout follows EA's own SEED research on agents for FC 25.

The radar has limits, and the design states them up front: it carries no ball height, no facing and no animation, so a policy built on it should learn positional play and passing shape and stay weak in duels and in the air. A second eye, a frozen pretrained visual encoder on the main picture, is designed for when measurement shows that failure.

Decision: learned from demonstrations

Reinforcement learning from scratch is hopeless here — matches take fifteen minutes of wall-clock time and nothing can be reset or run in parallel. Imitation fits instead: because the owner's controller already routes through the server, every session played is a labelled dataset for free, controller events paired with frames and state.

Action: intents, not stick voltages

Every 10 Hz tick, the decision is a set of intents. Direction, sprint and dribble are sent as absolute pad states every tick, and the mapper is idempotent, so only real changes reach the pad; a tap fires when its probability clears a calibrated threshold. In the first live matches the loop cost 6.2 ms of compute per tick at the median.

The test gates

Where it stands

The first live matches, on 25 September 2026, did not pass their gate, and the logs say why. The runtime did its job: the gate passed on every start, perception was healthy, nothing stuck and disarming worked. The brain did not: it stays on its player and sprints to the end of the pitch, and it never passes or shoots — its tap probability peaked at 0.107 against a threshold of 0.1123. The next version, drafted and waiting for the owner's review, calibrates that threshold on live play, weights the tap head so it can learn to shoot, and gives the network a short history of states.