Skip to content

A Java Swing implementation of the classic computer game

Notifications You must be signed in to change notification settings

awang343/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Welcome to Minesweeper! This repository contains a classic implementation of the popular Minesweeper game.

Overview

Minesweeper is a single-player logic game where the objective is to clear a grid of hidden mines without detonating any. The grid contains numbered cells that indicate the number of mines in the adjacent cells. The challenge is to deduce the locations of all mines based on these numbers and clear the board safely.

Installation

To run Minesweeper locally, follow these steps:

  1. Clone the Repository:

    git clone https://github.com/awang343/minesweeper.git
  2. Navigate to the Project Directory:

    cd minesweeper
  3. Run the project:

    java Main.java

Usage

  • Start a New Game: Select the desired difficulty level.
  • Play: Click on cells to reveal them. Numbers indicate the count of adjacent mines. Use this information to uncover safe cells and avoid mines.
  • Flags: Mark suspected mines with flags to avoid accidental clicks.
  • End Game: The game ends when you either clear all safe cells or hit a mine. Your score will be recorded based on your performance.

About

A Java Swing implementation of the classic computer game

Resources

Stars

Watchers

Forks

Languages