This repository contains the source code for a simple Minesweeper game implemented using HTML, CSS, and JavaScript. The game provides instructions on how to play and includes features such as revealing cells, marking suspicious cells, and tracking the player's score.
- Introduction
- How to Play
- Installation
- Game Features
- Audio
- Scoring System
- Highest Score
- End Game
- Play Again
- License
Minesweeper is a classic game where the player uncovers cells on a grid, avoiding bombs while aiming to reveal all safe cells. This implementation adds a modern twist with audio effects and a scoring system.
- Click on a cell to reveal its content.
- Avoid clicking on cells with bombs.
- Right-click to mark suspicious cells with flags.
- Aim to reveal all safe cells and achieve the highest score.
Simply clone the repository:
git clone https://github.com/sahil0902/minesweeper.git Open the index.html file in your web browser to start playing.
This Minesweeper game offers the following features:
- Dynamic grid generation with bomb placement.
- Audio effects for interactions.
- Score tracking and winning conditions.
- Instructions toggle for gameplay guidance.
- Customizable audio files in the audios folder for a personalized sound experience.
The scoring system increments with each safe cell reveal. Aim to achieve the maximum score by revealing all safe cells while avoiding bombs.
The game records the highest score achieved in localStorage. Check the highest score by loading the game, and beat your own record.
The game ends when either all safe cells are revealed (victory) or a bomb is clicked (defeat). The end game screen displays the outcome.
Click the "Play Again" button to reload the game and start a new round.
This Minesweeper game is open-source and available under the MIT License. Feel free to use, modify, and distribute the code.
For more information, visit the GitHub repository.
Feel free to adjust the formatting or add any additional sections as needed! Let me know if you have any specific preferences or if you'd like further improvements.