Snake-Game

A Snake-Game programmed in vanilla JS and styled in vanilla CSS.

Progress

  1. Added basic logic for snake movement.
  2. Added logic for Game over.
  3. Added swipe controls for mobile browsers.
  4. Added highscore feature.
  5. Stored the highscore in the local memory of the running device.

Bugs and suggestions.

  1. Highscore doesn’t save in the local memory. -> FIXED.
  2. Swipe controls don’t work in mobile browsers. -> FIXED.
  3. Address bar scrolls along with snake movement in chrome mobile. -> FIXED.
  4. Error in snake mechanics when length >= 20 or when length exceeds the row or column size.
  5. Apple spawns on the body of the snake.
  6. Gridlines should be made for better navigation while moving.

GitHub

View Github