Skip to content

mfrashidi/minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An example of the game

Minesweeper

This game is completely written in C++ with the help of the CLUI library to make it more beautiful and usable. I created this game for my final project of the ITP class.

Graphical version

Installation

  1. Clone the repository
git clone https://github.com/Mfrashidi/minesweeper.git && cd minesweeper
  1. Compile the game
make game
  1. Enjoy 🚀
./play

Features

  • Three basic modes + Custom mode
  • Unlimited Users
  • Unlimited save slots for each user
  • Encrypted save slots to prevent cheating 🔒
  • Leaderboard
  • Responsive to the window size

Game modes

  • Easy: 5*5 table, 5 bombs
  • Medium: 10*10 table, 20 bombs
  • Hard: 15*15 table, 50 bombs
  • Custom: 5*5-20*20 table, 1-399 bombs, Show or hide cell numbers, Set time limit for the game

How to play

In-Menu

Usage Key
Change an item ↑ ↓
Select an item ENTER
Back BACKSPACE

In-Game

Usage Key
Change the cell ↑ ↓ ← →
Select a cell ENTER
Flag a cell SPACE
Restart the game R
Save the game S
Exit the game BACKSPACE

Custom Mode Settings

Usage Key
Select items ↑ ↓
Change the setting ← →
Start the game ENTER

TODO ✅

  • Add high score history
  • Test and Add Windows support

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

APACHE 2.0