A minimal browser-based Snake game with no external dependencies.
npm run devThen open http://localhost:3001.
If port 3001 is already in use, run PORT=3002 npm run dev and open http://localhost:3002.
npm test- Arrow keys and
WASDsteer the snake. Spacepauses and resumes the game.Restartresets the score and board after a loss.- Hitting a wall or the snake body ends the game.
- Eating food grows the snake and increments the score.