A clone of the classic Minesweeper game model with a simple text-based implementation.
To run the text-based version of Minesweeper in your terminal
- Clone or download and unzip the repository
- In terminal, navigate to
MinesweeperClone/out/artifacts/Minesweeper_sample_jar
- Verify java is installed with
java --version
- Run the game with
java -jar Minesweeper.jar
The coordinates are 0 based with an origin in the upper left corner of the board
left 0 0
will reveal the upper-left most squareright 9 9
will flag the bottom-right most square of a 10x10 board
The default difficulty is Beginner with a 10x10 board with 5 mines. To change the difficulty, add an argument to the jar command.
- Intermediate 16x16 game with 40 mines:
java -jar Minesweeper.jar intermediate
- Expert 16x30 game with 99 mines:
java -jar Minesweeper.jar expert