Skip to content

Console realisation of a popular game on windows and ubuntu

License

Notifications You must be signed in to change notification settings

M4rchy-S/Sapper-Console

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

                   _____                                     ______                            __    
                  / ___/ ____ _ ____   ____   ___   _____   / ____/____   ____   _____ ____   / /___ 
                  \__ \ / __ `// __ \ / __ \ / _ \ / ___/  / /    / __ \ / __ \ / ___// __ \ / // _ \
                 ___/ // /_/ // /_/ // /_/ //  __// /     / /___ / /_/ // / / /(__  )/ /_/ // //  __/
                /____/ \__,_// .___// .___/ \___//_/      \____/ \____//_/ /_//____/ \____//_/ \___/ 
                            /_/    /_/                                                                   

Sapper Console

What is it game about?

Minesweeper has very simple rules. The playing field is divided into cells, some of which are mined. To win, you need to open all the cells without hitting the mines. Numbers are displayed in open cells, each digit is the number of mines in the number of cells. Using this information, you can determine in which cells mines are found. Potential mines can be flagged.

Keyboard layout

W,A,S,D - Movement
Space, Enter - Choose option
F - Set flag
ESC - Leave programm

How to start?

Windows

Run sapper_win.exe

Linux

Run sapper_linux

Code Compilation

Report issue if you have some problems with game or files. You can compile code to make program more suitable for your device

Windows

g++ main.cpp -o sapper_win.exe -static-libstdc++ -static-libgcc

Ubuntu/Debian

  1. Update your system
    sudo apt-get update
  2. Install ncurses library
    sudo apt-get install libncurses5-dev libncursesw5-dev
  3. Compile source code
    g++ main.cpp -o sapper_linux -lncurses