Snake Game
Play a modern, lag-free version of Snake. Features smooth rendering, campaign modes, mobile swipe controls, and unlockable skins. No ads, purely skill-based.
About
This tool is a high-fidelity, browser-based implementation of the classic arcade game Snake. Unlike traditional grid-snapping versions, this engine utilizes linear interpolation to render movement at the refresh rate of your monitor (up to 144Hz+), providing a fluid visual experience while maintaining the strict discrete logic of the 1997 classic.
The core mechanic tests visuospatial ability and reaction time. As the snake consumes food, its length L increases, reducing the available free space S on the grid. The risk of collision grows exponentially as L → S. This version includes a localized physics engine to handle collision detection and input buffering, ensuring that rapid command sequences are executed precisely without input loss.
Formulas
Movement Logic (Discrete):
The snake's head position vector P update at step t:
Pt+1 = Pt + v
Where v is the velocity vector from the set D = { (0,-1), (0,1), (-1,0), (1,0) }.
Rendering Logic (Interpolated):
To achieve visual smoothness, the render position R is calculated using the time accumulator α (0 ≤ α < 1):
R = Pt ⋅ (1 − α) + Pt+1 ⋅ α
P = Grid Coordinate Vector
v = Current Velocity
α = Interpolation Factor (dt / TickRate)
Reference Data
| Setting / Mode | Speed Factor (ms/tick) | Score Multiplier | Description |
|---|---|---|---|
| Slug (Easy) | 150 ms | × 1.0 | Ideal for beginners. Slow pace allows for planning. |
| Python (Normal) | 100 ms | × 1.5 | The standard challenge. Balanced speed and reflex requirements. |
| Cobra (Hard) | 70 ms | × 2.5 | High speed. Requires predictive turning and pattern recognition. |
| Viper (Insane) | 40 ms | × 5.0 | Reflex limit. Pure reaction training. |
| Zen Mode | 120 ms | N/A | No walls, no self-collision death. Relax and draw patterns. |
| Portal Mode | 100 ms | × 1.2 | Walls warp the snake to the opposite side (Toroidal topology). |