Skip to content

GouruRK/mine-sweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minesweeper - Laborde Quentin, Kies Rémy

LOGO


SCREENSHOT

Sommaire :

User Manual

Compilation

cd new
make

Cleaning

cd new
make mrproper

Optionnal arguments

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 and m the number of mines.
The number of mines m must be lower than the number of tiles l*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.

Game

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.

Feature :

  • Save
    • The user can save at any moment the game, the save will go in the folder grid in the file save.ga.

Laborde Quentin, Kies Rémy

About

Implementation of a minesweeper game in C

Topics

Resources

Stars

Watchers

Forks