Snake Game

Front-End

Snake game image

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:

  • JavaScript
  • HTML
  • CSS

View Project

View Code