This is a project that is a mock minesweeper game made in python utilized from command line.
-
Clone the repo and run python3 Host.py to initialize the game. (Requires internet connection)
-
For Co-op, run Host.py, select option 2, then run player2.py on your second device.
(The game sends a message to Google's recursive DNS server 8.8.8.8 to get your local IP)
- For Versus, run Host.py, select option 3, then run player2.py on your second device
Warning This game will not run on versions of python less than 3.6
Must download colorama module "python3 -m pip install colorama"
-
Enter the size of board you want for your minesweeper game.
-
Enter the number of bombs you want in your minesweeper game.
-
Use the reveal function "r" with (x and y coordinates) to reveal a space and identify the adjacent bombs.
Tip The number that appears is the number of adjacent bombs.
- Use the flag function "f" with (x and y coordinates) to flag a space you thing is a bomb.
Tip Activate Cheat mode with -c in single player mode
Tip flag a space that is already flagged in order to remove that flag
-
Once you have flagged all of the bombs, the game is over and you win.
-
If you try and remove a space that has a bomb, the bomb will detonate and you will lose.
-
Enjoy and Good Luck!