Classic Snake
Web / HTML5
Classic Snake, kept intentionally small: one grid, one food item, score tracking, game-over on wall or self collision, and instant restart.
Play in the page
Controls
- Arrow keys or
WASDto steer Space,Enter, or the on-screen button to pause and resumeRor the restart button to reset the run
Manual checks
- Food should always spawn on an empty cell
- Reversing directly into the snake should be ignored
- Hitting a wall or the body should stop the game immediately
- Restart should reset score, length, food, and direction