Snake AI

Egocentric observation with symmetric augmentation

Loading AI model...
This may take a few seconds (55 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 (horizontal flips during training), this achieves strong performance on 20x20 Snake.

Training Steps
~50M
Best Score
254/397
Observation
5x22x22
Parameters
4.4M

5-Channel Egocentric Observations

The agent sees a 22x22 grid (20x20 + wall padding) rotated so it always faces "up":

By rotating the grid based on the snake's direction, the agent learns direction-invariant patterns.

Network Architecture (2x Scale)