Skip to content

ImFstAsFckBoi/Ada-Minesweeper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚩 Terminal Minesweeper - Written in Ada

Image of program

🛠️ Compile and Run (Linux)

To compile you'll need the gnat compiler and toolchain, as well as make. The oldest known compatible language version is Ada 2012.

# install gnat for your system
# sudo pacman -S gcc-ada
# sudo apt install gnat
git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
make
./mine

📥 Install

Install to the system, to be accessible in any directory.

😎 Arch Linux / pacman

There is a PKGBUILD script for Arch based distros.

git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
makepkg -si # installs to /usr/local/bin

🤓 Other Linux

For other distros you will have to compile and install manually.

git clone https://github.com/ImFstAsFckBoi/Ada-Minesweeper
cd Ada-Minesweeper
make install # installs to ~/.local/bin

🕹️ Controls

w, a, s, d or ⬆️, ⬇️, ⬅️, ➡️ Move cursor
SPACE Open cell
f Flag cell
q Quit

🎨 Customize!

The file prep.def can be used to customize some of the parameters the program is compiled with. After editing you must recompile to see the changes. You can change cursor style, board size, etc. The file follows standard Ada syntax. Example:

BOARD_WIDTH := 10
CURSOR_RIGHT := "{"

About

Minesweeper for the terminal written in Ada

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published