Skip to content

Uncover cells, avoid mines, and challenge your logic skills in this customizable Minesweeper game. Let's play and test your strategic thinking!

Notifications You must be signed in to change notification settings

Abhay2342/MinesweeperGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

MinesweeperGame

The Python Minesweeper Game is a text-based implementation of the classic puzzle. Uncover cells without hitting mines, using logic and deduction. Customize the board size and mine count for varying difficulty levels. Test your strategic thinking and enjoy the challenge of this engaging Python game. Are you ready to conquer the mines? Let's play Minesweeper in Python!

image

Instructions

To download and play the Minesweeper game from your GitHub repository, follow these instructions:

  1. Go to the top of this GitHub repository.

  2. Click on the "Code" button, located near the top-right of the repository page.

  3. Click on the "Download ZIP" option to download the game code as a ZIP file.

  4. Extract the contents of the ZIP file to a location on your computer.

  5. Open a terminal or command prompt and navigate to the directory where you extracted the ZIP file.

  6. Make sure you have Python installed on your computer. You can check this by running the command python --version in the terminal/cmd. If Python is not installed, download and install it from the official Python website (https://www.python.org).

  7. Once Python is installed, run the following command in the terminal/cmd to install the required dependencies for the game:

pip install random
  1. After the dependencies are installed, you can run the game by executing the following command in the terminal/cmd:
python minesweeper.py
  1. The game will start and prompt you for the board size and the number of mines. Enter the desired values and press Enter.

  2. Next, enter the initial row and column to start the game. Make sure to enter valid values within the range of the board size.

  3. The game will begin, and you can play by entering row and column numbers and selecting actions (open, mark, unmark) as prompted.

  4. Follow the instructions displayed on the screen to continue playing the game.

  5. If you hit a mine, the game will end and display "Game Over! You hit a mine." If you successfully uncover all non-mine cells, it will display "Congratulations! You won the game."

  6. Enjoy playing Minesweeper!

About

Uncover cells, avoid mines, and challenge your logic skills in this customizable Minesweeper game. Let's play and test your strategic thinking!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages