Skip to content

Add game state persistence to allow players to resume after page refresh #78

@Parvathy-pp

Description

@Parvathy-pp

Is your feature request related to a problem? Please describe.

Currently, if the player refreshes the page or accidentally closes the browser, the entire game progress is lost. This can be frustrating, especially when the player has already made significant progress.

Describe the solution you'd like

I would like to implement game state persistence using localStorage so that:

  • Flipped cards remain flipped
  • Matched cards remain matched
  • Move count remains saved
  • Game progress can be restored when the page is reopened or refreshed

Describe alternatives you've considered

Restarting the game manually is the only current option, but it negatively affects user experience.

Additional context

This feature will improve user experience by allowing players to continue their game without losing progress and demonstrates effective use of browser storage.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions