Sommaire :
cd new make
cd new make mrproper
Choose random seed :
./minesweeper [-r seed]The default grid is a 10x10 size with 10 mines.
Generate a grid with parameters:
./minesweeper [-c "h l m"]
Where
h
signify the height,w
the width andm
the number of mines.
The number of minesm
must be lower than the number of tilesl*m
.
Generate a map from a map file (.ga):
./mine [filename]If the file doesn't exist a random map will be generated.
You can use multiple arguments at the same time.
The game can be lunch without argument, the program will lunch a 10x10 grid with 10 mines.
Rules are the same as a classic minesweeper.
When the program is launch, the user can :
- Use
left click
to reveal a tile. - Use
right click
to place or remove a flag.
- Save
- The user can save at any moment the game, the save will go in the folder
grid
in the filesave.ga
.
- The user can save at any moment the game, the save will go in the folder
Laborde Quentin, Kies Rémy