Skip to content

Course project Minesweeper, created by me for my UP course @ FMI, Sofia University.

Notifications You must be signed in to change notification settings

desiish/Project-Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Project-Minesweeper

Course project Minesweeper, created by me for my UP course @ FMI, Sofia University.

A simple implementation of the popular game Мinesweeper, written in C++.

Purpose of the game: to reveal all positions in a given square matrix that are not marked as mined without revealing any of the mines first. The user wins if all mines are marked and loses if any mine is opened.

Functionality:

  1. The user must choose valid size of the matrix field (from 3 to 10) and valid number of mines (from 1 to 3*size of the field) to be hidden in order to start playing. If the data is not valid, then the user will be asked to enter it again;
  2. Then the user should type a valid command and coordinates of a cell form the field. Again, if any of the given data is invalid, the user will be asked to enter it again.

*Note: Valid commands are:

  • open (If there is a mine there - game over);
  • mark (Marks the cell as a ‘mine’);
  • unmark (Unmarks the cell so it is not marked as a ‘mine’ anymore).
  1. If the user steps on a mine, he automatically loses the game.
  2. If the user has already marked all mines and opened all of the other cells, he wins the game.

About

Course project Minesweeper, created by me for my UP course @ FMI, Sofia University.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages