🐍 Snake Online
Classic snake: arrow keys or swipe, chase your high score solo or take turns with 2-8 players
🕹️ How to play
- Press start; the snake moves on its own: After you press Start, the snake keeps moving in its current direction automatically. You don't press to move it forward — you just change its direction at the right moment.
- Steer with arrow keys or swipe: On desktop use arrow keys or WASD; on mobile swipe on the board toward your target or tap the on-screen D-pad. You can't reverse 180° (pressing left while going right is ignored), or you'd crash into your own neck.
- Eat food to grow, score, and speed up: Aim the head at the pink food 🍎 to eat it: the snake grows a segment, you gain a point, and new food appears in a random empty cell. Every 5 foods the speed steps up, so it gets more intense as you go.
- Avoid walls and yourself; chase the best score: Hitting a wall (classic mode) or your own body ends the run and shows your score. Beating your local best triggers a 'new record' celebration; play again or switch to pass-the-phone to crown the Snake King.
📖 Rules & variants
Basics: a 20×20 grid, the snake starts as 3 cells centered facing right, advancing one cell per fixed tick. When the head enters the food cell it 'eats': the body grows one segment, score +1, and new food is drawn at random from the empty cells; otherwise the tail shrinks by one so length stays constant, creating the motion. Score equals foods eaten (= length minus 3).
Speed-up: every 5 foods the tick shortens by one step, down to a floor of 70 ms per cell. Speed only increases — the longer the snake, the faster it moves, which is the source of Snake's rising tension and the main difficulty in scoring high.
Turning & anti-suicide: legal directions are up/down/left/right, but a 180° reversal of your current heading is banned (pressing 'left' while going right is ignored). Turns are buffered: within one tick only the last legal input is kept, and legality is judged against the last committed direction — so a fast double-tap (e.g. up then left while going right) can't force an instant reversal.
Boundary modes (in settings): classic 'walls' ends the run when the head leaves the grid; 'wrap' lets the head exit one side and re-enter the opposite side, so you never die on a wall — more relaxed. Speed presets are Chill / Classic / Fast, mapping to different starting ticks; auto speed-up still applies.
Ending & clearing: hitting a wall or your own body ends the run, distinguishing 'hit the wall' from 'bit yourself'. In the rare case the snake fills the whole board with no empty cell left for food, it's a 'perfect clear' with a golden celebration. Refreshing the page restarts a run; in-progress games are not saved.
Pass-the-phone contest (party variant): switch to contest mode, enter 2–8 players, and each takes a turn on one phone; when all are done they're ranked highest score first with the 'Snake King' highlighted. Contest scores live only in this session — never written to local storage, never networked.
❓ FAQ
🎮 Related games
⚠️ A pure front-end web game: gameplay never needs the network, high scores stay on your device, for casual fun only.
Last updated: 2026-07-20 · Saved on this device only