Snake
Game Overview
The classic snake game. Steer the snake, eat the apples, grow longer, get faster, don't crash. Keyboard or swipe.
How to Play
Use arrow keys or WASD (or swipe on touch) to steer the snake. Each apple you eat makes the snake one segment longer and the speed slightly faster. Don't hit a wall and don't bite your own tail.
About Snake
Snake is one of those games that everyone has played, but nobody remembers the first time. It came pre-installed on Nokia phones in the late 1990s and somehow ended up being the most-played video game of an entire generation. The mechanic could not be simpler â you control a moving line, you eat food, the line gets longer, eventually the line hits itself and dies. There is no story, no upgrade system, no premium currency. It is the purest possible arcade loop.
Our version is grid-based, 20 by 20, with the wall-collision rules from the original Nokia game (not the wrap-around variant â we think walls are more interesting). Arrow keys or WASD on a keyboard, swipe on a touchscreen. Press space to pause. The snake speeds up slightly every 50 points so the game can't be ground forever; eventually your reaction time gives out.
How to be good at it. Snake has one real strategic principle: leave yourself an escape route. The most common death for new players isn't hitting a wall â it's getting trapped inside their own coiled body with no way out. As your snake gets longer, plan your moves not just for the current apple but for the move after the move after the next one. The best players play on the edge of the board on purpose, because edges constrain the snake's path in ways that make the body easier to predict.
The other principle is to commit. New players hesitate at intersections and end up triggering a 180-degree reversal that the game won't accept. Pick a direction, commit, and only change at the last moment. Hesitation is what kills you, not bad reflexes.
Our highscore is saved to your browser's localStorage, so you can beat your own record across sessions. There is no online leaderboard because then you'd start wondering whether other people were cheating, and the whole point of Snake is that it's just you versus your past self.
Build notes. The game is about 250 lines of vanilla JavaScript. A timer fires every 140 milliseconds (faster as you score), the snake's head moves one cell in the current direction, and we check collisions in O(N) where N is the snake's length. Even at 400+ segments, this runs comfortably at 60fps because we draw only on each tick, not on each animation frame. Worth playing back-to-back with our Frog Hopper if you want another arcade classic that still works in 2026.
Frequently Asked Questions
Can I wrap around the edges instead of dying?
Not yet. We started with walls because we think they make the game more strategic â you have to plan around the geometry. We may add a 'no walls' mode later.
Does the snake speed up forever?
No. The speed plateaus around level 8-9 (roughly 500 points). After that it stays constant so the game stays winnable on reaction time.
Is there a way to undo a move?
No. Snake is a real-time game; there is no undo. Pause with spacebar if you need to think, but once the snake moves, it has moved.
What is the highest possible score?
Mathematically, filling the entire 20x20 board with the snake â 400 segments at 10 points each, so 4,000. In practice nobody on our team has gotten above 1,500.
Similar Games to Explore
Embed this Game
Want to feature this game on your own website? Copy the code below: