How to Beat Snake: The Complete Guide
A systematic approach to clearing the board, from your first game to a perfect run.
“Beating” Snake means filling the entire grid with your snake's body. No empty cells, no remaining food, just a snake that occupies every square on the board. On Classic mode, that means growing from 3 segments to 300 (the full 20 by 15 grid), eating 297 food pellets along the way. It is one of the hardest challenges in any simple game, and very few players have ever done it.
This guide breaks the process into four phases, each with its own strategy, its own risks, and its own mental demands. Whether you are trying to crack 50 for the first time or chasing a perfect run, the principles are the same. The difference is how precisely you need to execute them.
The Math Behind a Perfect Game
Before diving into strategy, it helps to understand the numbers. On Classic mode, the playing field is 20 columns wide and 15 rows tall. That gives you 300 total cells. Your snake starts at 3 segments long, and each food pellet adds one segment. To fill the entire board, you need to eat 297 food pellets, reaching a score of 297.
Fast mode uses the same 20 by 15 grid (300 cells), so the math is identical, but the speed is roughly double. Impossible mode shrinks the grid to 15 by 10 (150 cells), meaning you need 147 food pellets for a perfect game. The smaller grid sounds easier, but the snake fills the available space much faster and the starting speed is nearly three times that of Classic.
The speed curve matters too. Every 5 food pellets you eat, the snake accelerates. On Classic, the tick interval starts at 167 milliseconds (about 6 moves per second) and drops by 8 milliseconds each step, bottoming out at 80 milliseconds (about 12.5 moves per second). By the time you are past score 50, the snake is moving noticeably faster than when you started. By score 150, you are near maximum speed. A perfect run requires sustaining that speed for another 147 points.
Phase 1: The Early Game (Score 0 to 50)
The early game is about building good habits, not chasing points. Your snake is short, the grid is wide open, and food is easy to reach. The temptation is to beeline straight for every pellet. Resist it. The habits you build now are the ones you will rely on when the board gets crowded.
Stick to the perimeter. Travel along the edges of the grid in a continuous loop. This keeps the center of the board open, which gives you a massive escape route when food spawns in a tricky location. At this stage, the snake is so short that the perimeter loop barely takes any time to complete. You will encounter food naturally as you circle the edges.
Practice one-turn food grabs. When food appears near your path, deviate by one or two turns to collect it, then return to the perimeter. This is the fundamental micro-skill of Snake: clean detours that do not leave you stranded in the middle of the board. If a pellet is more than two turns away from your current path, keep circling. It will still be there on the next loop.
Start building muscle memory for speed changes. The snake speeds up at score 5, 10, 15, 20, and so on. These early speed bumps are gentle, but noticing them now helps you anticipate the harder ones later. Each time the speed jumps, give yourself two or three loops of pure perimeter travel before attempting any detours. Let your hands adjust. For a full breakdown of how speed works across all modes, see the scoring and speed guide.
Phase 2: The Mid Game (Score 50 to 150)
This is where most runs die. Your snake now occupies roughly one sixth to one half of the Classic grid, the speed has increased significantly, and careless movement starts to have consequences. The mid game is about transitioning from the perimeter loop to a more structured pattern that can handle a longer snake.
Switch to the S-curve (zigzag) pattern. The zigzag is the most space-efficient movement pattern for a growing snake. Move horizontally across the full width of the grid, drop down one row, reverse direction, and repeat. When you reach the bottom, loop back to the top along one edge. This pattern covers every cell on the board in a predictable sequence, which means you will always encounter food without making risky detours.
The key to the zigzag is leaving one column open on each side for your return path. If you fill the entire width with horizontal passes, you have no corridor to loop back to the top. Reserve the leftmost or rightmost column as a highway. Your snake can travel along this corridor whenever it needs to reposition.
Let food come to you. This is the single most important principle from score 50 onward. When food spawns in a dangerous spot (between your body loops, near a wall with no exit, inside a tight pocket), do not chase it. Continue your pattern and wait for your tail to clear the area. The food stays put. Your tail does not. Given enough time, your pattern will bring you to the food safely. The strategy tips guide covers this principle in more depth.
Think two moves ahead. Before every turn, visualize where your tail will be by the time your head arrives at the destination. At 100 segments, one third of the board is your body. A space that looks clear right now may not be clear in three moves. If you are uncertain whether a path is safe, take the longer route. The extra moves cost almost nothing. Getting trapped costs everything.
Phase 3: The Late Game (Score 150 to 250)
By score 150, you have eaten enough food to fill half the Classic grid. The snake is long enough that any deviation from your pattern creates real risk. The speed is near its maximum. This phase demands discipline above all else.
Commit fully to the zigzag. In the early and mid game, breaking from your pattern to grab food is manageable because you have room to improvise. In the late game, improvisation kills runs. If food is not on your current zigzag path, complete the current pass first. Let your tail clear the lane, then adjust your pattern to pass through the food's location on the next sweep.
Watch your tail, not your head. This sounds counterintuitive, but it is essential. Your head is moving into space you can see. Your tail is vacating space you need. In the late game, the tail is your lifeline. Every cell the tail clears is a cell your head can enter two or three passes later. If you lose track of where your tail is, you lose the ability to plan ahead.
Manage the speed psychologically. At this stage, the snake is moving near 80 milliseconds per tick on Classic (around 12.5 moves per second). That is fast enough that conscious decision-making is difficult. You need to rely on the pattern. If your zigzag is clean, you do not need to make decisions on every move. The pattern makes them for you. The only decisions you need to make are when and where to adjust the pattern to reach food.
Leave escape corridors. Never let your snake body form a closed loop with no exit. In the late game, this means ensuring that at least one side of your zigzag pattern has a corridor that connects the top and bottom of the grid. If you accidentally seal off a section of the board, you will eventually need to enter it for food, and you will have no way out. The corridor is your insurance policy.
Phase 4: The Endgame (Score 250+)
The endgame is the final 50 points of a perfect run, and it is where the game transforms completely. Your snake now occupies roughly 85% of the board. There are fewer than 50 empty cells. The food spawns in the only available spaces, which are the gaps in your current pattern. You are not choosing a path anymore. The path chooses you.
Follow your tail exactly. In the endgame, the optimal strategy converges to a single rule: your head follows your tail. As your tail vacates a cell, your head can enter it one full loop later. If your zigzag is clean, this happens automatically. The snake traces the same path over and over, spiraling through the remaining open cells until the last pellet is eaten.
Do not deviate for food. Food will always spawn in a cell that your pattern will eventually cover. If you break from the pattern to reach food faster, you risk sealing yourself off from the remaining empty cells. At 250+, there is no room for improvisation. The pattern is the path, and the path is the only safe route. Trust the pattern.
Accept the clock. The endgame is slow, measured in laps rather than seconds. You may circle the board four or five times before your path crosses the food's location. This can feel frustrating, especially at maximum speed when every move requires focus. But patience is the only strategy that works. Players who have completed perfect runs consistently report that the last 30 points took longer (in real time) than the first 100, because the pattern demands so many laps per food pellet.
Key Techniques in Detail
The perimeter-first pattern. Travel along all four walls in a continuous rectangle. This is your default early-game pattern and your fallback when you lose your zigzag rhythm. The perimeter loop is the safest possible path because you can only collide with yourself, never with a wall. Its weakness is that food in the center requires a detour, and detours get risky as the snake grows. Use it for scores 0 to 40, and as an emergency reset when you feel your pattern slipping.
The S-curve (zigzag) method. Move horizontally across the grid, drop one row, reverse, and repeat. This is the primary pattern for scores 40 to 297. The zigzag is optimal because it covers maximum area per move, it is repeatable, and it naturally creates the corridors you need for repositioning. The trick is maintaining the pattern while the snake occupies more and more of the grid. Each horizontal pass gets shorter as your body fills previous rows.
The spiral (coil) method. Trace a spiral from the outside edge inward, then spiral back out. This is a popular alternative to the zigzag, and it works especially well on the Impossible grid (15 by 10) where the smaller dimensions make the zigzag feel cramped. The spiral covers less area per move than the zigzag, but it keeps the center open longer, which some players prefer. For a deep dive into this technique, see the spiral strategy guide.
Reading tail movement. Your tail is always one full snake-length behind your head. At score 100 (103 segments total), your tail is 103 moves behind. That means if you turn right now, the cell your head occupies will not be vacated by your tail for another 103 ticks. In the late game, this lag determines everything. You can only enter a cell if your tail will vacate it before your head arrives. Calculating this precisely is what separates good runs from perfect runs.
Escape corridors. Always maintain at least one continuous path from the top of the grid to the bottom. This corridor is your safety net. If food spawns in a bad location, you can retreat to the corridor, loop around the board, and approach the food from a safer angle. The corridor is typically the leftmost or rightmost column, kept empty by the zigzag pattern's turn points. Losing this corridor in the late game is almost always fatal within the next 10 to 20 moves.
How the Strategy Changes by Difficulty
The core strategy (perimeter loop, then zigzag, then tail-following) applies to every mode. But the execution changes significantly based on grid size and speed.
Classic mode (20 by 15 grid, starting at 167ms per tick) gives you the most room and the most time to think. This is where you should learn and practice the patterns. A perfect Classic game requires 297 food pellets and is the most achievable of the three main modes.
Fast mode (20 by 15 grid, starting at 83ms per tick) uses the same grid but starts at roughly double the speed. The strategy is identical, but the execution window is half as wide. Fast mode tests whether your patterns are truly automatic. If you have to think about the next move, you are too slow. The difficulty comparison guide breaks down the speed curves in detail.
Impossible mode (15 by 10 grid, starting at 56ms per tick) is a fundamentally different challenge. The grid has only 150 cells, so the snake fills the available space twice as fast relative to Classic. The speed starts at nearly three times the Classic rate and bottoms out at 28 milliseconds per tick (roughly 36 moves per second). At that speed, you are reacting on pure muscle memory. The zigzag pattern must be flawless because there is no room or time for corrections.
The Mental Side of a Perfect Run
A perfect game on Classic takes roughly 15 to 25 minutes of sustained focus at near-maximum speed. That is a long time to concentrate on a game where a single wrong input ends the run. Players who have completed perfect runs describe the experience as meditative, a state of pure pattern execution where conscious thought fades and the movements become automatic.
The biggest mental trap is impatience. Around score 200, it feels like you are close to finishing. You are not. You still need 97 more food pellets, and the board is now crowded enough that each one takes multiple laps to reach. Rushing at this stage, breaking the pattern to grab food a few ticks earlier, is the most common way to end a near-perfect run.
The second trap is the score counter itself. Watching your score climb toward 297 creates a kind of performance anxiety that can disrupt the flow state you need to maintain. Some players cover the score display or deliberately avoid looking at it during the endgame. The score does not matter until it reaches 297. Before that, the only thing that matters is the next move.
If you are new to the game and want to understand the basics before attempting a perfect run, the how to play guide covers the controls, the rules, and each difficulty mode. The leaderboard shows what the top scores look like on every mode, which can give you a realistic target to aim for on your way to the perfect game.