Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented score and MaxScore logic. #37

Closed
wants to merge 1 commit into from

Conversation

shuklamaneesh23
Copy link

@shuklamaneesh23 shuklamaneesh23 commented Mar 16, 2024

tackled issue #1

Screenshot 2024-03-16 at 12 33 11 PM

Changes Implemented:

  • Added a scoring mechanism to track points earned when the snake consumes food.
  • Implemented local storage to maintain the highest score achieved even after a refresh.

Details:

  • Added logic to track and display the current score during gameplay.
  • Implemented local storage to persistently store and update the highest score achieved.
  • Modified the game engine to update the highest score in local storage when a new high score is achieved.

Testing:

  • Conducted thorough testing to ensure the scoring mechanism accurately tracks points earned.
  • Tested the persistence of the highest score in local storage across refreshes and browser sessions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants