A modern twist on the classic snake game, built with HTML5, CSS3, and JavaScript.
- Game Developer: Mojyaba S. Sadatpour
- PRD Created by: GROK
- Development Tool: CURSOR AI
- Classic snake gameplay with modern visuals
- Wrap-around walls
- Score tracking
- Game history (last 10 games)
- Sound effects
- Responsive design for all devices
- Clone or download this repository
- Open
index.htmlin your web browser - No server required - the game runs entirely in the browser
-
Desktop:
- Arrow keys or WASD to control snake direction
- Space to start/restart game
-
Mobile:
- Swipe to control snake direction
- Tap the on-screen buttons to control direction
- Tap "Play Again" to restart
index.html- Main HTML filecss/style.css- Styling for the gamejs/game.js- Game logicsounds/- Sound effectseat.mp3- Sound played when eating an applegameover.mp3- Sound played when game ends
- Click "Start Game" to begin
- Control the snake using arrow keys or WASD
- Eat the red apples to grow and earn points
- Avoid hitting your own tail
- When you lose, your score is saved to the game history
- Click "Play Again" to restart
The game works on all modern browsers:
- Chrome
- Firefox
- Safari
- Edge