A classic Minesweeper game built with JavaScript, HTML, and CSS.
This is a web-based implementation of the classic Minesweeper game. It was developed as a practice project to improve skills in JavaScript, HTML, and CSS.
- Three difficulty levels: Beginner, Intermediate, and Expert.
- Implemented using plain JavaScript for game logic.
- Sound effects for game interactions.
- Displays remaining lives as heart icons.
- Timer to track the time taken to complete the game.
- Hints for uncovering cells temporarily.
- Real-time updates and dynamic gameplay.
- A modern web browser (e.g., Chrome, Firefox, Edge).
- Basic knowledge of HTML, CSS, and JavaScript (optional for contributors).
-
Clone the repository to your local machine:
git clone https://github.com/natiapa/minesweeper.git
-
Open the project directory:
cd minesweeper
-
Open
index.html
in your web browser to start the game.
- Choose the difficulty level (Beginner, Intermediate, Expert).
- Click on cells to reveal them.
- Right-click to place flags on suspected mines.
- Use hints if needed.
- The game ends when all non-mine cells are revealed or when a mine is clicked.
- The goal is to clear a board containing hidden mines without detonating any of them.
- Each number in a revealed cell represents how many mines are adjacent to it.
- Use logic and reasoning to avoid mines and clear the board.
Contributions are what make the open-source community such an amazing place to learn and create. Any contributions you make are greatly appreciated.
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/YourFeature
). - Commit your changes (
git commit -m 'Add some YourFeature'
). - Push to the Branch (
git push origin feature/YourFeature
). - Open a Pull Request.
Distributed under the MIT License. See LICENSE
for more information.
Natia Cohen - natiapa
Project Link: https://natiapa.github.io/minesweeper/