Thanks to visit codestin.com
Credit goes to github.com

Skip to content

qxzhang1994/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

minesweeper

This project is for minesweeper game. Firstly, I create a 99 field indicating the game field. Secondly I set all the field with -1 indicating field that had not been clicked. Then I generates random number and set mines where number is 9. Then calaulate number of mine around a coordinate being clicked and print. It calculates the number of mines and when the user click all the coordinate without mine, the user wins. If user click a blank field, it will enlarge the field with 33 field in center of blank coordinate. you can compile with 'g++ -o sweep minesweeper.cpp' and then './sweep'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published