Snake AI

Egocentric observation with symmetric augmentation

Loading AI model...
This may take a few seconds (70 MB)
0 Current Score
1 Episode
0 Max Score

This agent uses egocentric observation: the grid is rotated so the snake always "faces up", reducing complexity. Combined with symmetric augmentation, curriculum spawning, and extended credit assignment (gamma=0.999, horizon=256), this achieves strong performance on 20x20 Snake.

Training Steps
~411M
Best Score
394/397
Observation
5x39x39
Parameters
4.4M

5-Channel Head-Centered Observations

The agent sees a 39x39 grid centered on the snake's head, rotated so it always faces "up":

Head-centered observation combined with egocentric rotation gives the agent translation and rotation invariance.

Network Architecture (2x Scale)