A simple console-based Minesweeper game implemented in Python.
This Minesweeper game allows players to experience the classic Minesweeper gameplay in the console. Players can reveal cells to uncover numbers indicating adjacent mines or mines themselves. The goal is to reveal all non-mine cells without hitting a mine.
- Customizable grid size and number of mines.
- Interactive gameplay with options to reveal cells or flag/unflag potential mine locations.
- Dynamic board display showing the current state of the game.
- Win/lose conditions to determine game outcomes.
- Clone or download this repository to your local machine.
- Navigate to the directory containing the
minesweeper.py
file. - Run the
minesweeper.py
file using a Python interpreter. - Follow the on-screen instructions to enter the number of rows, columns, and mines.
- Use 'R' to reveal a cell or 'F' to flag/unflag a cell as a potential mine.
- Continue playing until you either reveal all non-mine cells or hit a mine.
- If you win, the final board will be displayed with all mines revealed.
- You can choose to play again at the end of each game.
- Python 3.x
python minesweeper.py