The challenge: Write a snake game with HTML, CSS, & JavaScript only
What I did:
- Create snake
- Auto move snake on game start
- Move snake with keypress
- Create food
- Eat food
- Increase snake length
- Handle gameover cases
- Display game over
- Restart game
- Game over when snake touches itself
Technology I used:
View Project
View
Code