This is the javascript version of the classic Snake Game in which the snake has to eat tasty watermelons to gain points!
The snake must not touch the outline of the screen, on doing so, the game ends.
Load the page to play again.
This is an infinite game, so play till you can!
When the snake/array hits the outline of the page, the game ends:
Srinidhi Ayyagari
Would like to thank Prateek bhaiya, Arnav bhaiya and all the resources on Youtube and Stack Overflow always! :)
The game does not end when the snake hits itself.
This part is yet to be developed.