Skip to content

Single-player command line dominoes game with up to three machine players. It can be played displaying 2D tiles

License

Notifications You must be signed in to change notification settings

ItsShunya/Dominoes

Repository files navigation

Domino made-with-C Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

Dominoes

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

Table of Contents

About The Project

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.

Built With

Getting Started

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.

Prerequisites

  1. You will need a C compiler to compile this project, you can get GCC.

Installation

  1. Clone the repo
git clone https://github.com/Shunya-sama/Dominoes.git
  1. 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
  1. 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

Usage

After following the installation procedures you will obtain an executable file. To run it you only need to execute it.

Settings

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.

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

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.

  1. Fork the Project

  2. Create your Feature Branch (git checkout -b FEATURE/#3-Amazing-Feature)

  3. Commit your Changes (git commit -m 'Add some Amazing Feature')

  4. Push to the Branch (git push origin FEATURE/#3-Amazing-Feature)

  5. Open a Pull Request

License

Distributed under the GNU General Public License. See LICENSE for more information.

Contact

Victor Luque - @ItsShunya - Shunya#1624 - [email protected]

Project Link: https://github.com/Shunya-sama/Dominoes

Acknowledgements

About

Single-player command line dominoes game with up to three machine players. It can be played displaying 2D tiles

Topics

Resources

License

Stars

Watchers

Forks

Languages