iiitl / snake-game-js

0 stars 44 forks source link

The game overs when the snake bites itself #4 #73

Closed anadimehta closed 4 months ago

anadimehta commented 4 months ago

4 Implement Game Over on Snake Biting Itself .

In the javascript file , in the collide function added for loop for the length of snake so that the if the snake bites itself the game gets over.