Skip to content

Brianhuynh97/C-Project-1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper

Welcome to Minesweeper! This classic puzzle game challenges your strategic thinking and logic skills.

Minesweeper Game

Table of Contents

Introduction

Minesweeper is a game where players uncover squares on a grid to avoid hidden mines. The objective is to clear the board without detonating any mines. Each revealed square provides a clue as to how many mines are adjacent to it, allowing players to deduce safe squares and strategically navigate the grid.

Features

  • Classic Minesweeper gameplay

Installation

To get started with Minesweeper, follow these steps:

  1. Clone the repository:

    git clone https://github.com/Brianhuynh97/C-Project-1.git
    
  2. Navigate to the project directory:

    cd C-Project-1
    cd code .
    
  3. Compile the code:

    g++ minesweeper_game.cpp   
    g++ minesweeper_game.cpp -o minesweeper     
    
  4. Run the game:

    ./minesweeper
    

Usage

Once you've compiled and run the game, use the following control to play:

Enter the row and column (e.g., 2 3):

The game exits when you step on the mine.

Contributing

I welcome contributions to improve Minesweeper! If you'd like to contribute, please follow these steps:

Fork the repository.

Create a new branch:

   git checkout -b feature-branch

Make your changes and commit them:

git commit -m "Description of changes"

Push to the branch:

git push origin feature-branch

Create a pull request.

I'll review and merge your changes if they align with my project's goals.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages