This repository contains the source code of a Dominoes Minigame that can be Executed in the Terminal, developed by:
Ramón Álvarez (ralvarezdev).
Only C++.
- Clone this repository to your local machine using the following command:
git clone https://github.com/ralvarezdev/dominoes
- Change your Current Working Directory to where the Repository was Cloned
- There are Two Ways to Compile the Program:
- With G++ (You must have Installed MinGW Compiler). Use the following command:
Command for Windows
g++ -o bin\Dominoes.exe src\main.cpp src\lib\cards.cpp src\lib\cards.h src\lib\input.cpp src\lib\input.h src\lib\terminal.cpp src\lib\terminal.h
Command for Linux
g++ -o bin/Dominoes.exe src/main.cpp src/lib/cards.cpp src/lib/cards.h src/lib/input.cpp src/lib/input.h src/lib/terminal.cpp src/lib/terminal.h
- With CMake (You must have Installed CMake and Make). First, Get to the
bin
Folder inside the Repository. Use the following command:Command for Windows
cmake -S ..\ -G "MinGW Makefiles" -B .\ && make
Command for Linux
cmake -S ../ -G "MinGW Makefiles" -B ./ && make
- Run the program by clicking the
Dominoes.exe
.
For a Better User Experience, Resize the Terminal Window to Fullscreen