Observation
The 69 inputs each player receives on every decision.
Each player receives a separate 69-element vector. Both teams see themselves attacking toward +x. The engine
rotates the second team's view by 180 degrees, changing the signs of both axes. The centre spot is (0, 0) and
the opposing goal line is x = 1.
Positions, offsets, and distances are divided by 20 m, half the length of the pitch. Player velocities are divided by 7 m/s and ball velocity by 18 m/s. Normalized values can exceed 1 in magnitude. Relative positions are offsets from the player receiving the observation. All indices below are zero-based and inclusive.
Player and ball
| Indices | Value |
|---|---|
0–1 | Player position (x, y) |
2–3 | Player velocity (vx, vy) |
4–6 | Player slot as a one-hot vector in slot order, corresponding to shirt numbers 1–3 |
7 | Sprint reserve |
8 | Fatigue |
9 | Stagger time remaining divided by the maximum stagger time (0.6 s) |
10 | Kick cooldown remaining divided by the full cooldown (0.3 s) |
11 | 1 if the player can kick now, including restart restrictions |
12 | Surface-to-surface gap to the ball, divided by 20 m and clipped to [0, 2] |
13 | 1 if the player is currently in an offside position |
14 | 1 if the player has a stored offside flag from an earlier touch |
15–16 | Ball position |
17–18 | Ball position relative to the player |
19–20 | Ball velocity |
Other players
| Indices | Order | Fields in each block |
|---|---|---|
21–27, 28–34 | Two teammates in slot order, skipping the observing player | Relative position (2), velocity (2), reserve, staggered flag, stored offside flag |
35–40, 41–46, 47–52 | Three opponents, nearest first, with ties in slot order | Relative position (2), velocity (2), reserve, staggered flag |
Match state
| Indices | Value |
|---|---|
53–59 | Phase one-hot in this order play, kickoff, throw_in, corner, goal_kick, free_kick, drop_ball |
60–61 | Restart ownership flags in order, ours then theirs |
62 | Restart time remaining divided by 6 s |
63 | Half, 0 for first and 1 for second |
64 | Time remaining in the half divided by 180 s |
65–66 | Our goals and their goals, each divided by 10 |
67–68 | Last-touch flags in order, ours then theirs |
Indices 60–62 are zero during open play. Both last-touch flags are zero when there is no recorded last touch.
In the kit, proxyfootball.interface.layout(3) gives the Python slices for the me, ball, teammates,
opponents, and game blocks.