This is a dominoes single-player played in the command line interface. It is possible to play with up to three bots and you can even let four bots play to visualize the functionalities of the game.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
- About the Project
- Built With
- Getting Started
- Prerequisites
- Installation
- Usage
- Roadmap
- Contributing
- License
- Contact
- Acknowledgements
This was a project I developed during my first year of unniversity when I was learning the C programming language, so it includes quite some beginner errors. In most cases, when learning a new programming language, some of the easiest programs to make are just simple games, so in this case I chose dominoes. As a beginner developer, I did not include any kind of GUI, so this is a software that runs in the command line. It is a simple dominoes game for a single player to play against bots.
I'm pretty sure there are way better dominoes games out there, but if in any case you need to code a dominoes game in C or want to practice your programming skills, feel free to use this one.
- You will need a C compiler to compile this project, you can get GCC.
- Clone the repo
git clone https://github.com/Shunya-sama/Dominoes.git
- Compile the files (make sure you are in the right directory)
gcc -c main.c game.c move.c player.c questions.c random.c sleep.c stack.c table.c tile.c
- Create the executable file
gcc -g -o Dominoes main.o game.o move.o player.o questions.o random.o sleep.o stack.o table.o tile.o
After following the installation procedures you will obtain an executable file. To run it you only need to execute it.
You will be asked for the number of players you want to have (from one to four), simply type the number and press enter. You will also have to choose if there will be a human player, in this case you will have to answer yes if you want to play against the bots, or answer no to let the bots play by themselves and analyze the functionalities of the game. You can also activate omniscience to see at all times the tiles owned by every single player.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
-
Fork the Project
-
Create your Feature Branch (
git checkout -b FEATURE/#3-Amazing-Feature
) -
Commit your Changes (
git commit -m 'Add some Amazing Feature'
) -
Push to the Branch (
git push origin FEATURE/#3-Amazing-Feature
) -
Open a Pull Request
Distributed under the GNU General Public License. See LICENSE
for more information.
Victor Luque - @ItsShunya - Shunya#1624 - [email protected]
Project Link: https://github.com/Shunya-sama/Dominoes
- ETSETB - UPC for their C programming course.