Skip to content

Classic Minesweeper reimagined with retro pixel art. Click to reveal numbers, avoid bombs, and track scores with audio effects. Dynamically generated using HTML, CSS, JS for quick desktop or mobile gameplay. Easy customization for nostalgic fans. Outwit bombs with logic and luck. Can you beat your high score? Let the games begin!

Notifications You must be signed in to change notification settings

sahil0902/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper Game

Overview

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.

Table of Contents

Introduction

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.

How to Play

  1. Click on a cell to reveal its content.
  2. Avoid clicking on cells with bombs.
  3. Right-click to mark suspicious cells with flags.
  4. Aim to reveal all safe cells and achieve the highest score.

Installation

Simply clone the repository:

git clone https://github.com/sahil0902/minesweeper.git Open the index.html file in your web browser to start playing.

Game Features

This Minesweeper game offers the following features:

  1. Dynamic grid generation with bomb placement.
  2. Audio effects for interactions.
  3. Score tracking and winning conditions.
  4. Instructions toggle for gameplay guidance.
  5. Customizable audio files in the audios folder for a personalized sound experience.

Scoring System

The scoring system increments with each safe cell reveal. Aim to achieve the maximum score by revealing all safe cells while avoiding bombs.

Highest Score

The game records the highest score achieved in localStorage. Check the highest score by loading the game, and beat your own record.

End Game

The game ends when either all safe cells are revealed (victory) or a bomb is clicked (defeat). The end game screen displays the outcome.

Play Again

Click the "Play Again" button to reload the game and start a new round.

License

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.

About

Classic Minesweeper reimagined with retro pixel art. Click to reveal numbers, avoid bombs, and track scores with audio effects. Dynamically generated using HTML, CSS, JS for quick desktop or mobile gameplay. Easy customization for nostalgic fans. Outwit bombs with logic and luck. Can you beat your high score? Let the games begin!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published