Skip to content

saifamrkhail/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##Minesweeper by Saifur Rahman In this project I implement minesweeper in C.

##Compilation You can use my executable if you don't want to write a make file.
My executable is minespr/cmake-build-debug/minespr
If you want to make a makefile maybe my CMakeLists.txt could be helpful.

##Execution Run the game with cmake-build-debug/minespr -h to see help instructions.
If you are in the minepsr directory, then start the game from there.
Otherwise please first cd to minespr directory and then start the game.
This game can be started form anywhere, but if you want to be fast, start as recommended.

The game can be started with or without any parameters
with parameter:
cmake-build-debug/minespr -n saif -r10 -c10 -m20

no parameter:
cmake-build-debug/minespr
After the game is started, you will be prompted to enter the required parameters

##Starting the application cmake-build-debug/minespr -n saif -r10 -c10 -m20
-n name
-r row
-c cols
-m mines

You will be prompted to enter your move.
To open a cell you specify coordinates.
First comes column and then the row.
example: A5

To mark a mine first type "?" and then enter the coordinated of the cell.
example: ?A5 You cam also type in small letter. Capital and small letters are treated equally.

You can also type in the following commands.
exit quit the game without saving any data
abort quit the game with saving the current game. You may continue this game later
restart restart the game
help opens help instructions

##Completed Tasks all tasks are implemented except ncurses

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published