Minimal browser Snake game.
- From the repo root, start a static server:
python3 -m http.server 4173- Open:
http://127.0.0.1:4173
- Controls:
- Arrow keys move the snake.
- WASD moves the snake.
- On-screen direction buttons move the snake (mobile/touch fallback).
- Loop behavior:
- Snake advances on a fixed grid.
- Eating food increases score and snake length.
- Hitting a wall or the snake body shows game-over.
- Flow:
Startbegins play from ready.SpaceorPpauses/resumes.RorRestartrestarts after/during game.Ftoggles fullscreen;Escexits fullscreen.