The World Records of Snake: How Far Can It Go?

Feb 1, 2025

What does it mean to "beat" Snake? There are no bosses, no final level. The only true victory is filling the entire grid — a feat that requires perfect play from beginning to end, with no margin for error whatsoever.

The Theoretical Maximum

On a 20×20 grid (400 cells), a perfect game would see the snake grow to fill all 400 squares — eating 397 pieces of food without ever hitting itself or a wall. The probability of this happening by chance approaches zero. It requires deliberate, algorithmic play.

The Hamiltonian Path Solution

Computer scientists and speedrunners discovered that the key to a perfect game is following a Hamiltonian path — a route that visits every cell on the grid exactly once before looping back. If you can pre-compute this path and follow it, you will always collect food without ever dying, because the snake simply traces a fixed route around the entire grid.

The catch: as food spawns randomly, you need to adapt the path in real time while still guaranteeing a safe route. This is computationally complex — and doing it manually in your head is extraordinary.

Human Records

Various YouTube channels have documented human players achieving grid-filling scores on classic Snake variants. These runs take anywhere from 20 minutes to over an hour and require an almost zen-like state of concentration. Interestingly, the hardest part is not the beginning — it's the final 50 cells, when any deviation from an optimal path causes an unavoidable death.

AI Records

AI agents trained with reinforcement learning can consistently achieve perfect scores on Snake by learning the Hamiltonian path approach. OpenAI's early RL demos frequently used Snake as a benchmark — a testament to the game's status as a canonical challenge in computer science as much as gaming.