iiitl / snake-game-js

0 stars 44 forks source link

Updating score and max score issue #1 #72

Closed Sreenidhi01 closed 4 months ago

Sreenidhi01 commented 4 months ago

I created a variable maximumScore. And I incremented score variable . whenever snake hits the sides the score becomes zero and Highest score is updated to maximum score of previous games