Minefield
Features
Themes
Themes were implemented in order to provide customization and provide a more preferential feel for the long standing debate on what's better.... dark or light theme?
The initial theme that loads is pulled from the browser and is based on if the user has selected a dark mode for their browser. If they have not, then it defaults to the light theme.
If the user changes the default to the opposite theme, this decision will be marked in the browser storage and will be retained for the next load of the browser when they try to sweep some mines.
Difficulties
The game was implemented with three difficulties: easy, medium, and hard.
The decision the user makes on their difficulty is stored in the browser and the game will load up with the last played difficulty. If the user has not played the game, it will default to easy
High Scores
High scores for easy, medium, and hard are all tracked based on the time that the player took to clear the minefield. If the user improves their time, a new record for that difficulty will be stored.
Win counts are also tracked and will show on the start screen for the game to represent the victories that the player has achieved.
All high scores and win counts are stored in the browser to retain the player's scores until the data is cleared.