This is a simple implementation of the classic Snake game in JavaScript. The snake moves around a grid, eating apples to grow longer, while avoiding its own tail.
- Snake movement with arrow keys
- Random apple generation
- Responsive grid that adjusts based on window size
- Game over when snake touches its own body or the grid's boundaries
To play the game, simply open index.html
in any modern web browser.
- Any modern web browser with JavaScript enabled.
- High score tracking
- Difficulty levels
- ???
This project is open-source and can be used and modified by anyone so long as you agree that you use my code on your own risk.