fix: Made changes in the index.js to update current score whenever snake eats food and update max score whenever the snake hits the wall since it was not possible to add a pop up for high score without these changes .
Added a pop-up when the user makes a high score.
Here's a video attached for reference,
fix: Made changes in the index.js to update current score whenever snake eats food and update max score whenever the snake hits the wall since it was not possible to add a pop up for high score without these changes . Added a pop-up when the user makes a high score. Here's a video attached for reference,
https://github.com/iiitl/snake-game-js/assets/143210487/cc708ca1-9889-4669-bf6f-7d325e0b2fb0